On Sun, Mar 23, 2008 at 10:46:52AM -0700, H. Peter Anvin wrote: > Theodore Tso wrote: >> #!/bin/sh >> # >> prefix=$(git rev-parse --show-prefix) >> for i in $* >> do >> git show HEAD:$prefix$i > $i >> done > > FWIW, cg-restore is a 131-line shell script, so one can assume it's not > just doing it for fun. Actually, such an assumption is not safe, simply since it was written long before the :-syntax and many other nice features were invented; if one wants to do things in Git sanely these days, it's not even safe to look at Cogito's source code for inspiration anymore as it had to work only with really hardcore primitives. (And 38 lines is documentation. ;-) -- Petr "Pasky" Baudis Whatever you can do, or dream you can, begin it. Boldness has genius, power, and magic in it. -- J. W. von Goethe -- 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