diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-11-11 17:35:41 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-22 17:05:03 -0800 |
commit | 367c98866c340bc9cf5cfa88c3b69f027165fc44 (patch) | |
tree | 6dc2ffcd92dc2d9a9ec1bac2e547434821dcf668 /builtin-runstatus.c | |
parent | d37d320386369375b4e5b95b98517503125376f9 (diff) | |
download | git-367c98866c340bc9cf5cfa88c3b69f027165fc44.tar.gz |
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.c | 1 |
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")) |