From: Linus Torvalds Date: Mon, 13 Jun 2005 17:22:39 +0000 (-0700) Subject: git-whatchanged: use the git-rev-parse helper X-Git-Tag: v0.99~270 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d6cb5e5f99b5fe4a83f452923622e50f268d68b1;p=git.git git-whatchanged: use the git-rev-parse helper So now you can say git-whatchanged -p v2.6.12-rc5.. drivers/usb and it will show you what changed (as a patch) in drivers/usb since the v2.6.12-rc5 release. --- diff --git a/git-whatchanged b/git-whatchanged index 7772260c..6fbd1156 100755 --- a/git-whatchanged +++ b/git-whatchanged @@ -1,2 +1,4 @@ #!/bin/sh -git-rev-list HEAD | git-diff-tree --stdin --pretty -r "$@" | LESS="$LESS -S" ${PAGER:-less} +git-rev-list $(git-rev-parse --default HEAD --revs-only "$@") | + git-diff-tree --stdin --pretty -r $(git-rev-parse --no-revs "$@") | + LESS="$LESS -S" ${PAGER:-less}