Merge branch 'ja/rebase-i-avoid-amending-self'
"git rebase -i" can mistakenly attempt to apply a fixup to a commit itself, which has been corrected. * ja/rebase-i-avoid-amending-self: sequencer: avoid dropping fixup commit that targets self via commit-ish
This commit is contained in:
@ -6203,8 +6203,6 @@ int todo_list_rearrange_squash(struct todo_list *todo_list)
|
||||
return error(_("the script was already rearranged."));
|
||||
}
|
||||
|
||||
*commit_todo_item_at(&commit_todo, item->commit) = item;
|
||||
|
||||
parse_commit(item->commit);
|
||||
commit_buffer = logmsg_reencode(item->commit, NULL, "UTF-8");
|
||||
find_commit_subject(commit_buffer, &subject);
|
||||
@ -6271,6 +6269,8 @@ int todo_list_rearrange_squash(struct todo_list *todo_list)
|
||||
strhash(entry->subject));
|
||||
hashmap_put(&subject2item, &entry->entry);
|
||||
}
|
||||
|
||||
*commit_todo_item_at(&commit_todo, item->commit) = item;
|
||||
}
|
||||
|
||||
if (rearranged) {
|
||||
|
||||
Reference in New Issue
Block a user