Bug with fixup and autosquash
- From
- Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
- Date
- Feb 8, 2017, 10:10 UTC
- Message-ID
- <CAFjFpRe8zqxs4OLbCrjnuEzF=75sbBJ+HuZqek49B=O=TFHq8A@mail.gmail.com>
Hi Git-developers, First of all thanks for developing this wonderful scm tool. It's sooo versatile.
I have been using git rebase heavily these days and seem to have found a bug.
If there are two commit messages which have same prefix e.g. yyyyyy This is prefix xxxxxx This is prefix and message
xxxxxx comitted before yyyyyy
Now I commit a fixup to yyyyyy using git commit --fixup yyyyyy zzzzzz fixup! This is prefix
When I run git rebase -i --autosquash, the script it shows me looks like pick xxxxxx This is prefix and message fixup zzzzzz fixup! This is prefix pick yyyyyy This is prefix
I think the correct order is pick xxxxxx This is prefix and message pick yyyyyy This is prefix fixup zzzzzz fixup! This is prefix
Is that right?
I am using [ubuntu]git --version git version 1.7.9.5
-- Best Wishes, Ashutosh Bapat EnterpriseDB Corporation The Postgres Database Company