Skip to content

Commit 88fc120

Browse files
committed
fixup??? built-in add -i: start implementing the patch functionality in C
This is required by `kt/add-i-progress`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2878396 commit 88fc120

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

add-patch.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,10 @@ static int patch_update_file(struct add_p_state *s,
13501350
else
13511351
prompt_mode_type = PROMPT_HUNK;
13521352

1353+
color_fprintf(stdout, s->s.prompt_color,
1354+
"(%"PRIuMAX"/%"PRIuMAX") ",
1355+
(uintmax_t)hunk_index + 1,
1356+
(uintmax_t)file_diff->hunk_nr);
13531357
color_fprintf(stdout, s->s.prompt_color,
13541358
_(s->mode->prompt_mode[prompt_mode_type]),
13551359
s->buf.buf);

0 commit comments

Comments
 (0)