Thread (11 messages) 11 messages, 2 authors, 2016-06-15
DORMANTno replies

[PATCH 4/9] git stat: honor relative paths setting

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:15
Subsystem: the rest · Maintainer: Linus Torvalds

When run from a subdirectory, by default (and when status.relativepaths is
set), we should pass it to wt_status_print_body()

Signed-off-by: Junio C Hamano <redacted>
---

 * Fix-up to 3/9; will be squashed in the final round.

 builtin-commit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/builtin-commit.c b/builtin-commit.c
index 0ef7c8f..7120876 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -922,6 +922,8 @@ int cmd_stat(int argc, const char **argv, const char *prefix)
 	s.is_initial = get_sha1(s.reference, sha1) ? 1 : 0;
 	wt_status_collect(&s);
 
+	if (s.relative_paths)
+		s.prefix = prefix;
 	if (s.use_color == -1)
 		s.use_color = git_use_color_default;
 	if (diff_use_color_default == -1)
-- 
1.6.4.224.g3be84
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help