From: Victoria Dye Date: Fri, 04 Nov 2022 15:28:32 GMT Subject: Re: rebase -i --update-refs can lead to deletion of branches Message-ID: In-Reply-To: Phillip Wood wrote: > We should be removing the entry entirely if the user removes it from the > todo-list see b3b1a21d1a (sequencer: rewrite update-refs as user edits > todo list, 2022-07-19) where the commit message says > > 1. If a '//' triple in the update-refs file does not >    have a matching 'update-ref ' command in the todo-list _and_ the >    value is the null OID, then remove that triple. Here, the >    user removed the 'update-ref ' command before it was executed, >    since if it was executed then the value would store the >    commit at that position. > > I think that is the best approach but it seems the implementation isn't > actually doing that. Thanks for pointing this out. This approach seems to have only been applied to 'git rebase --edit-todo', so ideally the fix will just be "do the same thing in the initial rebase." I got sidetracked yesterday and didn't get as much time to work on this as I'd liked, but I should be able to send a patch today.