From: Junio C Hamano Date: Fri, 31 Aug 2007 04:33:46 GMT Subject: Re: gitk from subdirectory Message-ID: <7v642w5nmd.fsf@gitster.siamese.dyndns.org> In-Reply-To: <7vabs85ntg.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Since commit cdaee5db165ba8bae8d3b524950e61666fc36a84 (gitk: > Improve handling of -- and ambiguous arguments), running gitk > from a subdirectory limits the displayed history with the ... FYI, I picked up your wish in the kernel list and have been experimenting with this 5-liner whenever I refer to a commit in the past: #!/bin/sh for commit do git show -s --pretty=oneline "$commit" done | sed -e 's/^[^ ]* /&(/' -e 's/$/)/'