Browse Source
This trivial patch makes "git-rev-list" able to handle not being in the top-level directory. This magically also makes "git-whatchanged" do the right thing. Trivial scripting fix to make sure that "git log" also works. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>maint
Linus Torvalds
20 years ago
committed by
Junio C Hamano
2 changed files with 2 additions and 2 deletions
@ -1,5 +1,4 @@
@@ -1,5 +1,4 @@
|
||||
#!/bin/sh |
||||
. git-sh-setup-script || die "Not a git archive" |
||||
revs=$(git-rev-parse --revs-only --default HEAD "$@") |
||||
revs=$(git-rev-parse --revs-only --default HEAD "$@") || exit |
||||
[ "$revs" ] || die "No HEAD ref" |
||||
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less} |
||||
|
Loading…
Reference in new issue