From: Michael J Gruber Date: Thu, 26 Nov 2009 15:24:38 GMT Subject: [RFC/PATCH 1/2] status -s: respect the status.relativePaths option Message-ID: <62c5bb36940485deefbf73f4bdc3fd45bbea069e.1259248243.git.git@drmicha.warpmail.net> In-Reply-To: so that 'status' and 'status -s' in a subdir produce the same file names. Signed-off-by: Michael J Gruber --- 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