aboutsummaryrefslogtreecommitdiff
path: root/builtin-commit.c
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 /builtin-commit.c
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 'builtin-commit.c')
-rw-r--r--builtin-commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index 2ec822313..19297ac02 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -285,7 +285,8 @@ static int run_status(FILE *fp, const char *index_file, const char *prefix)
struct wt_status s;
wt_status_prepare(&s);
- s.prefix = prefix;
+ if (wt_status_relative_paths)
+ s.prefix = prefix;
if (amend) {
s.amend = 1;