Hi Hannes, On Thu, Apr 23, 2009 at 12:38:09PM +0200, Johannes Sixt wrote: > Uwe Kleine-König schrieb: > > There is a practical problem though: The filelist has to be sorted in a > > way that is not provided by ls, so: > > > > ukleinek@cepheus:~/gsrc/linux-2.6/usr$ for f in $(ls -A); do printf "100644 %s\x00" $f; git hash-object $f | perl -n -e 'chomp; for $c (split(/(.{2})/)) { printf("%c", hex($c)) if $c }'; done | git hash-object -t tree -w --stdin > > a0a6efb3f1de956badc7607c7d372cc325a18846 > > Does ... $(LANG=C ls -A) ... make a difference for you? oh, up to now I thought that C and en_US.UTF-8 use the same sorting. So yes, it does it right then. Best regards and thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html