aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-12-07 16:26:07 -0500
committerJunio C Hamano <gitster@pobox.com>2007-12-08 03:33:24 -0800
commit46f721c8fee9f1c027f96e2bf987ce6e7d05ab94 (patch)
treecc538c99132ea4dad626b5b26e7fb576d72b38c0 /t
parentc3ce3261281d00bcdd59907e76f421034ccb1261 (diff)
downloadgit-46f721c8fee9f1c027f96e2bf987ce6e7d05ab94.tar.gz
git-46f721c8fee9f1c027f96e2bf987ce6e7d05ab94.tar.xz
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')
-rwxr-xr-xt/t7502-status.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/t/t7502-status.sh b/t/t7502-status.sh
index d6ae69d46..9ce50cade 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