summaryrefslogtreecommitdiff
path: root/add-interactive.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-11-16 16:08:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-11-16 23:59:02 (GMT)
commitafae3cb6b036e8fb218e5699c8ad3c18b6d4b992 (patch)
tree7e8a890970d1743667ecc2bd2a7d35db82ea5517 /add-interactive.c
parent6681e3603216f0e279fea467a0e6d829fffb82a5 (diff)
downloadgit-afae3cb6b036e8fb218e5699c8ad3c18b6d4b992.zip
git-afae3cb6b036e8fb218e5699c8ad3c18b6d4b992.tar.gz
git-afae3cb6b036e8fb218e5699c8ad3c18b6d4b992.tar.bz2
add -i (built-in): use the same indentation as the Perl version
When copying the spaces used to indent non-flat lists in `git add -i`, one space was appended by mistake. This makes the output of the built-in version of `git add -i` inconsistent with the Perl version. Let's adjust the built-in version to produce the same output as the Perl version. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'add-interactive.c')
-rw-r--r--add-interactive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/add-interactive.c b/add-interactive.c
index 9126684..c298a8b 100644
--- a/add-interactive.c
+++ b/add-interactive.c
@@ -1137,7 +1137,7 @@ int run_add_i(struct repository *r, const struct pathspec *ps)
print_file_item_data.color = data.color;
print_file_item_data.reset = data.reset;
- strbuf_addstr(&header, " ");
+ strbuf_addstr(&header, " ");
strbuf_addf(&header, print_file_item_data.modified_fmt,
_("staged"), _("unstaged"), _("path"));
opts.list_opts.header = header.buf;