git merge/rebase ref -P ref
- From
ryenus <ryenus@gmail.com>
- Date
- Apr 28, 2013, 15:35 UTC
- Message-ID
- <CAKkAvawit0L4JKKNs7Di46B=Y0VjPohKNbjnS=r07VhafXu4kQ@mail.gmail.com>
The inverted meaning of {ours,theirs} for rebase could be very confusing to some, especially to new uses, for me every time I merge/rebase I need to think about it to make sure I've made it right.
What about making it more intuitive?
We can and a new option (like '-P') for people to specify the preferred branch/ref by it's name.
E.g. assume I have two branches, namely 'dev' and 'exp', and I prefer the changeset on the 'dev' branch when I merge or rebase, so that I can do it with
# using merge git checkout dev git merge exp -P dev
OR
# using rebase git checkout exp git rebase dev -P dev