mirror of
https://github.com/git/git.git
synced 2024-10-30 13:57:54 +01:00
90e1848113
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>
4 lines
189 B
Bash
Executable file
4 lines
189 B
Bash
Executable file
#!/bin/sh
|
|
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}
|