Skip to content

Commit 5b75b86

Browse files
committed
fixup! built-in add -i: implement the patch command
This change was introduced in v2 of the PR at gitgitgadget#171. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8e27c90 commit 5b75b86

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
@@ -475,7 +475,7 @@ static void collect_changes_cb(struct diff_queue_struct *q,
475475
file_item = entry->item;
476476
adddel = s->mode == FROM_INDEX ?
477477
&file_item->index : &file_item->worktree;
478-
other_adddel = s->phase == FROM_INDEX ?
478+
other_adddel = s->mode == FROM_INDEX ?
479479
&file_item->worktree : &file_item->index;
480480
adddel->seen = 1;
481481
adddel->add = stat.files[i]->added;

0 commit comments

Comments
 (0)