Skip to content

Commit

Permalink
fixup! built-in add -i: implement the patch command
Browse files Browse the repository at this point in the history
This change was introduced in v2 of the PR at
gitgitgadget#171.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Dec 6, 2019
1 parent 8e27c90 commit 5b75b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add-interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ static void collect_changes_cb(struct diff_queue_struct *q,
file_item = entry->item;
adddel = s->mode == FROM_INDEX ?
&file_item->index : &file_item->worktree;
other_adddel = s->phase == FROM_INDEX ?
other_adddel = s->mode == FROM_INDEX ?
&file_item->worktree : &file_item->index;
adddel->seen = 1;
adddel->add = stat.files[i]->added;
Expand Down

0 comments on commit 5b75b86

Please sign in to comment.