[RFC/PATCH 1/2] status -s: respect the status.relativePaths option
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Nov 26, 2009, 15:24 UTC
- Message-ID
- <62c5bb36940485deefbf73f4bdc3fd45bbea069e.1259248243.git.git@drmicha.warpmail.net>
- In-Reply-To
- <cover.1259248243.git.git@drmicha.warpmail.net>
so that 'status' and 'status -s' in a subdir produce the same file names.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> --- Anything else would be highly surprising. Note that the porcelain case is unchanged, of course.
builtin-commit.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/builtin-commit.c b/builtin-commit.c index 7f888fe..c103beb 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -1113,6 +1113,8 @@ int cmd_status(int argc, const char **argv, const char *prefix) switch (status_format) { case STATUS_FORMAT_SHORT: + if (s.relative_paths) + s.prefix = prefix; short_print(&s, null_termination); break; case STATUS_FORMAT_PORCELAIN:
-- 1.6.6.rc0.274.g71380