git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Next: Junio C Hamano
Message 1 of 2 in “git merge/rebase ref -P ref”
  1. ryenusApr 28, 2013
  2. Junio C HamanoApr 29, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.