Skip to content

Commit f3ca25a

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
fixup??? built-in add -i: re-implement revert in C
Required by tg/stash-refresh-index. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 9a52164 commit f3ca25a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

add-interactive.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ static int run_revert(struct add_i_state *s, const struct pathspec *ps,
710710
COMMIT_LOCK) < 0)
711711
res = -1;
712712
else
713-
res = repo_refresh_and_write_index(s->r, REFRESH_QUIET, 0, NULL, NULL, NULL);
713+
res = repo_refresh_and_write_index(s->r, REFRESH_QUIET, 0, 1,
714+
NULL, NULL, NULL);
714715
if (!res)
715716
printf(Q_("reverted %d path\n",
716717
"reverted %d paths\n", count), (int)count);

0 commit comments

Comments
 (0)