diff options
author | Jeff King <peff@peff.net> | 2007-12-08 00:26:07 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-08 14:33:24 +0300 |
commit | 46f721c8fee9f1c027f96e2bf987ce6e7d05ab94 (patch) | |
tree | cc538c99132ea4dad626b5b26e7fb576d72b38c0 /t/t7502-status.sh | |
parent | c3ce3261281d00bcdd59907e76f421034ccb1261 (diff) |
add status.relativePaths config variable
The output of git-status was recently changed to output relative
paths. Setting this variable to false restores the old behavior for
any old-timers that prefer it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7502-status.sh')
-rwxr-xr-x | t/t7502-status.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/t/t7502-status.sh b/t/t7502-status.sh index d6ae69d46e..9ce50cade8 100755 --- a/t/t7502-status.sh +++ b/t/t7502-status.sh @@ -88,4 +88,35 @@ test_expect_success 'status with relative paths' ' ' +cat > expect << \EOF +# On branch master +# Changes to be committed: +# (use "git reset HEAD <file>..." to unstage) +# +# new file: dir2/added +# +# Changed but not updated: +# (use "git add <file>..." to update what will be committed) +# +# modified: dir1/modified +# +# Untracked files: +# (use "git add <file>..." to include in what will be committed) +# +# dir1/untracked +# dir2/modified +# dir2/untracked +# expect +# output +# untracked +EOF + +test_expect_success 'status without relative paths' ' + + git config status.relativePaths false + (cd dir1 && git status) > output && + git diff expect output + +' + test_done |