From: Junio C Hamano Date: Fri, 14 Jul 2006 00:39:55 GMT Subject: Re: Kernel headers git tree Message-ID: <7v4pxlt3xg.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <1152835150.31372.23.camel@shinybook.infradead.org> David Woodhouse writes: > ยน http://david.woodhou.se/extract-khdrs-git.sh and > http://david.woodhou.se/extract-khdrs-stage2.sh for the stout of stomach With modern enough git, you can rewrite KBUILDSHA=`git ls-tree $TREE -- Kbuild | cut -f3 -d\ | cut -f1` with KBUILDSHA1=`git rev-parse $TREE:Kbuild` I am not sure what function incparent() is trying to do with this: git rev-list --max-count=1 --topo-order $1 -- .