Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-06-16 18:18:17 +0400
committerJunio C Hamano <gitster@pobox.com>2013-06-18 00:30:01 +0400
commit12b9d32790b40bf3ea49134095619700191abf1f (patch)
tree0b79987d1da6269a8c5e55d1090f7429133b84fa /t/t7400-submodule-basic.sh
parent1ae2e19a32729e21778b74f61794369203b58a1d (diff)
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 't/t7400-submodule-basic.sh')
0 files changed, 0 insertions, 0 deletions