From 90e18481137b2071b20fc675d69af4fc60a05267 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 23 Aug 2005 10:31:41 -0700 Subject: Make "git-rev-list" work within subdirectories 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 Signed-off-by: Junio C Hamano --- git-log-script | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git-log-script') diff --git a/git-log-script b/git-log-script index 24d1e83949..9260f92055 100755 --- a/git-log-script +++ b/git-log-script @@ -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} -- cgit v1.2.3