Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-11-11 20:35:41 +0300
committerJunio C Hamano <gitster@pobox.com>2007-11-23 04:05:03 +0300
commit367c98866c340bc9cf5cfa88c3b69f027165fc44 (patch)
tree6dc2ffcd92dc2d9a9ec1bac2e547434821dcf668 /builtin-runstatus.c
parentd37d320386369375b4e5b95b98517503125376f9 (diff)
git status: show relative paths when run in a subdirectory
To show the relative paths, the function formerly called quote_crlf() (now called quote_path()) takes the prefix as an additional argument. While at it, the static buffers were replaced by strbufs. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-runstatus.c')
-rw-r--r--builtin-runstatus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-runstatus.c b/builtin-runstatus.c
index 2db25c88bf..8d167a9674 100644
--- a/builtin-runstatus.c
+++ b/builtin-runstatus.c
@@ -14,6 +14,7 @@ int cmd_runstatus(int argc, const char **argv, const char *prefix)
git_config(git_status_config);
wt_status_prepare(&s);
+ s.prefix = prefix;
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "--color"))