:/regex syntax picks stash entries over regular commits

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

 



What did you do before the bug happened? (Steps to reproduce your issue)
I ran git stash push, which created the stash entry "On main: dark
mode". Then I committed changes before noticing an oversight with the
previous commit. I wrote the fix and ran git commit --fixup :/dark

What did you expect to happen? (Expected behavior)
The fixup commit should have referenced the previous commit.

What happened instead? (Actual behavior)
It referenced the stash entry.

What's different between what you expected and what actually happened?
I cannot autosquash the commit that refers to the stash entry. I
suggest adding an option to prefer (older) regular commits over
(newer) stash entries when specifying a commit with the :/regex
syntax. In any case I think it's a bug for the --fixup option to
readily produce a commit that does not work with the --autosquash
option which it seems it was designed for.


[System Info]
git version:
git version 2.39.3 (Apple Git-146)




[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