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

Re: Do most people feel tracking branches useful?

From
Andreas Ericsson <ae@op5.se>
Date
Oct 29, 2008, 11:53 UTC
Message-ID
<49084EB7.1000109@op5.se>
In-Reply-To
<49083957.2060702@gmail.com>
Liu Yubao wrote:
Show 20 quoted lines
> Andreas Ericsson wrote:
>> Liu Yubao wrote:
>>
>> Use "git fetch" instead of "git pull" and you won't need the 'my' branch.
>> If you use "git pull --rebase" you won't need to bother at all.
>>
> Thank you very much, I didn't know the "--rebase" option, now I learn
> the 'branch.<name>.rebase' configuration too by "git help pull".
> 
> [...snip...]
> 
>> I can't understand why you're working so hard for a linear history, but
>> perhaps
>> that's just an effect of only having leaf developers. I also can't
>> understand
> You got it exactly, we are leaf developers and make enhancement mostly,
> we don't want the upstream branch full of merging commit for many
> not so major changes. I remember keeping linear history is recommended
> in git's documentation.
> 

That should probably be rephrased to "Think before you merge" or something like that. Keeping history linear provides very little value in itself, but mindlessly criss-cross-merging makes history difficul to review for no good reason. Any perceived value of mindless merging is quickly nullified once one starts looking at "git rerere".

The only time you'll run into problems with non-linear history is when you're bisecting, and bisection ends up at a merge-commit where all the merged branhces tips' pre-merge work flawlessly, but the merge-commit itself introduces breakage by erroneously resolving a conflict, or by introducing changes of its own (git commit --amend, fe).

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Liu YubaoNext: Björn Steinbrink
Message 7 of 9 in “Do most people feel tracking branches useful?”
  1. Liu YubaoOct 29, 2008
  2. Miles BaderOct 29, 2008
  3. Liu YubaoOct 29, 2008
  4. Miles BaderOct 29, 2008
  5. Andreas EricssonOct 29, 2008
  6. Liu YubaoOct 29, 2008
  7. Andreas EricssonOct 29, 2008
  8. Björn SteinbrinkOct 29, 2008
  9. Liu YubaoOct 29, 2008

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.