]> asedeno.scripts.mit.edu Git - git.git/commitdiff
git-whatchanged: use the git-rev-parse helper
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 13 Jun 2005 17:22:39 +0000 (10:22 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 13 Jun 2005 17:22:39 +0000 (10:22 -0700)
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.

git-whatchanged

index 7772260cd30e8f9a849f2857db3f3fd40e630d4f..6fbd115601ed7c95c66111954ffe3b6246702106 100755 (executable)
@@ -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}