diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-11-11 18:35:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-23 02:05:03 +0100 |
commit | 367c98866c340bc9cf5cfa88c3b69f027165fc44 (patch) | |
tree | 6dc2ffcd92dc2d9a9ec1bac2e547434821dcf668 /wt-status.h | |
parent | builtin-commit: Refresh cache after adding files. (diff) | |
download | git-367c98866c340bc9cf5cfa88c3b69f027165fc44.tar.xz git-367c98866c340bc9cf5cfa88c3b69f027165fc44.zip |
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 'wt-status.h')
-rw-r--r-- | wt-status.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wt-status.h b/wt-status.h index 77449326db..f58ebcbb23 100644 --- a/wt-status.h +++ b/wt-status.h @@ -23,6 +23,7 @@ struct wt_status { int workdir_untracked; const char *index_file; FILE *fp; + const char *prefix; }; int git_status_config(const char *var, const char *value); |