Skip to content

Commit afae3cb

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6681e36 commit afae3cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add-interactive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ int run_add_i(struct repository *r, const struct pathspec *ps)
11371137
print_file_item_data.color = data.color;
11381138
print_file_item_data.reset = data.reset;
11391139

1140-
strbuf_addstr(&header, " ");
1140+
strbuf_addstr(&header, " ");
11411141
strbuf_addf(&header, print_file_item_data.modified_fmt,
11421142
_("staged"), _("unstaged"), _("path"));
11431143
opts.list_opts.header = header.buf;

0 commit comments

Comments
 (0)