author | Linus Torvalds <torvalds@osdl.org> | |
Sun, 18 Sep 2005 18:18:30 +0000 (11:18 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 18 Sep 2005 21:18:34 +0000 (14:18 -0700) | ||
commit | a8783eeb7988a20664dade2379d380ee1a199a10 | |
tree | 085f8d34eb6dcf178478a6ab6fdf46bf82d52db2 | tree | snapshot |
parent | 1b0c1e672a417c3f4a46b36497168d6d61dba0cb | commit | diff |
[PATCH] Add "--git-dir" flag to git-rev-parse
Especially when you're deep inside the git repository, it's not all that
trivial for scripts to figure out where GIT_DIR is if it isn't set.
So add a flag to git-rev-parse to show where it is, since it will have
figured it out anyway.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Especially when you're deep inside the git repository, it's not all that
trivial for scripts to figure out where GIT_DIR is if it isn't set.
So add a flag to git-rev-parse to show where it is, since it will have
figured it out anyway.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-parse.c | diff | blob | history |