summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-06-16 15:18:17 +0100
committerJunio C Hamano <gitster@pobox.com>2013-06-17 13:30:01 -0700
commit12b9d32790b40bf3ea49134095619700191abf1f (patch)
tree0b79987d1da6269a8c5e55d1090f7429133b84fa /log-tree.c
parent1ae2e19a32729e21778b74f61794369203b58a1d (diff)
downloadgit-12b9d32790b40bf3ea49134095619700191abf1f.tar.gz
rev-parse: add --prefix option
This makes 'git rev-parse' behave as if it were invoked from the specified subdirectory of a repository, with the difference that any file paths which it prints are prefixed with the full path from the top of the working tree. This is useful for shell scripts where we may want to cd to the top of the working tree but need to handle relative paths given by the user on the command line. Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
0 files changed, 0 insertions, 0 deletions