Re: rebase -i --update-refs can lead to deletion of branches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 20, 2022 at 7:04 PM herr.kaste <herr.kaste@xxxxxxxxx> wrote:
>
> After that all refs have been removed/deleted.
>
> ```
> $ git branch  --list
> * test
> ```

:(

> I decide late that I rather don't want to update "master" etc. and it should
> probably not delete the local refs.

Deleting refs if you remove from the rebase-todo seems undesirable in
my opinion. It's too easy to use that footgun. It may be a good
feature to be _able_ to delete branches during a rebase, in a similar
manner as updating them, but with a different explicit flag, like d
regs/heads/ or something

> Actually, I so love the new feature that I switched it *on* by default, and just
> wanted to overwrite the behavior in the todo editor.

I didn't know this feature had been added but I'm very very pleased as
I've wanted it. It doesn't seem to update tags though. That would've
been nice.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux