Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-13 21:22:39 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-13 21:22:39 +0400
commitd6cb5e5f99b5fe4a83f452923622e50f268d68b1 (patch)
treec81e21a8dcef0302533c38a1f6f2ac78a77bb72e /git-whatchanged
parent8ebb0184028d3dcdbc659920523338dd53770b03 (diff)
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.
Diffstat (limited to 'git-whatchanged')
-rwxr-xr-xgit-whatchanged4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-whatchanged b/git-whatchanged
index 7772260cd3..6fbd115601 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}