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>
Johannes Schindelin committed
Nov 16, 2020 at 16:08 UTC
afae3cb6b036e8fb218e5699c8ad3c18b6d4b992
1 file changed
+1
-1
add-interactive.c
+1
-1
@@ -1137,7 +1137,7 @@ int run_add_i(struct repository *r, const struct pathspec *ps)
1137
print_file_item_data.color = data.color;
1138
print_file_item_data.reset = data.reset;
1139
1140
- strbuf_addstr(&header, " ");
1140
+ strbuf_addstr(&header, " ");
1141
strbuf_addf(&header, print_file_item_data.modified_fmt,
1142
_("staged"), _("unstaged"), _("path"));
1143
opts.list_opts.header = header.buf;