summaryrefslogtreecommitdiff
path: root/rev-list.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-08-23 10:31:41 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-23 12:43:57 -0700
commit90e18481137b2071b20fc675d69af4fc60a05267 (patch)
treef09e29b1179bb8334d778e764ce3a4f9871d8b19 /rev-list.c
parent0360e99d06acfbb0fcb72215cf6749591ee53290 (diff)
downloadgit-90e18481137b2071b20fc675d69af4fc60a05267.tar.gz
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 <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rev-list.c b/rev-list.c
index 2ed5e87e12..3643adb631 100644
--- a/rev-list.c
+++ b/rev-list.c
@@ -481,6 +481,7 @@ static void handle_one_commit(struct commit *com, struct commit_list **lst)
int main(int argc, char **argv)
{
struct commit_list *list = NULL;
+ const char *prefix = setup_git_directory();
int i, limited = 0;
for (i = 1 ; i < argc; i++) {