summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46b77a6)
raw | patch | inline | side by side (parent: 46b77a6)
author | Michael J Gruber <git@drmicha.warpmail.net> | |
Thu, 26 Nov 2009 15:24:38 +0000 (16:24 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 27 Nov 2009 03:15:57 +0000 (19:15 -0800) |
Otherwise, 'status' and 'status -s' in a subdir would produce different
names. This change is all the more important because status.relativePaths
is on by default.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
names. This change is all the more important because status.relativePaths
is on by default.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-status.txt | patch | blob | history | |
builtin-commit.c | patch | blob | history |
index 58d35fb3c257d76f6c26b3dcbbacdbed7327499a..b3dfa42cc0211dbd8881f471ac287fa0b9cd5915 100644 (file)
to colorize its output.
If the config variable `status.relativePaths` is set to false, then all
-paths shown in the long format are relative to the repository root, not
-to the current directory.
+paths shown are relative to the repository root, not to the current
+directory.
If `status.submodulesummary` is set to a non zero number or true (identical
to -1 or an unlimited number), the submodule summary will be enabled for
diff --git a/builtin-commit.c b/builtin-commit.c
index f2fd0a4580820dc3d78681a7bcd3145dc94a0513..f49b598cbdee2c48571b84567c8692d61443224f 100644 (file)
--- a/builtin-commit.c
+++ b/builtin-commit.c
switch (status_format) {
case STATUS_FORMAT_SHORT:
+ if (s.relative_paths)
+ s.prefix = prefix;
short_print(&s, null_termination);
break;
case STATUS_FORMAT_PORCELAIN: