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

Re: push.default???

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 24, 2009, 06:35 UTC
Message-ID
<7vbpoe16lv.fsf@alter.siamese.dyndns.org>
In-Reply-To
<buoljniyybp.fsf@dhlpc061.dev.necel.com>
Miles Bader <miles@gnu.org> writes:
Show 14 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>> However, when 'feature' is fully cooked, before pushing it back to be
>> shared with others in the group, don't you do any testing with the work
>> done by others while you were working on 'feature'?  That means you first
>> integrate your 'feature' locally into shared 'master' and make sure all
>> fits together well.
>
> You seem to be making a lot of assumptions about workflows here.
>
> It seems quite plausible to me that one might want to keep the remote
> branch separate, even after pushing.  It's very common to cooperatively
> develop feature branches for a very long time before merging to the
> "real" master, but it's still extremely useful to keep them as branches
> in the same local git directory.
Sorry, but I do not understand your point.

My "feature is cooked, let's test it together with master" does not mean "Now we are done with the feature, so let's 'branch -d' it" at all. That is an orthogonal issue. You can keep 'feature' in the local repository indefinitely.

Keeping the remote branch separate means pushing 'feature' to 'feature', and keep it there. I do not have any problem with that, either.

The '--track' I was having hard time justifying to myself was about pushing 'feature' (and other features 'feature2', 'feature3',... that are all forked from 'master' at the remote side) to 'master' at remote. In other words, the workflow being discussed to support why --track was a good mode was about updating the remote 'master', not about keeping the branches separate.

Either you are not following the thread, or you are agreeing with me without realizing, or perhaps a bit of both.

Previous: Miles BaderNext: Paolo Bonzini
Message 16 of 18 in “push.default???”
  1. Paolo BonziniJun 22, 2009
  2. Junio C HamanoJun 22, 2009
  3. Paolo BonziniJun 22, 2009
  4. Finn Arne GangstadJun 23, 2009
  5. Paolo BonziniJun 23, 2009
  6. Finn Arne GangstadJun 23, 2009
  7. Andreas EricssonJun 23, 2009
  8. Finn Arne GangstadJun 23, 2009
  9. Andreas EricssonJun 23, 2009
  10. Paolo BonziniJun 23, 2009
  11. Finn Arne GangstadJun 23, 2009
  12. Paolo BonziniJun 23, 2009
  13. Junio C HamanoJun 23, 2009
  14. Junio C HamanoJun 23, 2009
  15. Miles BaderJun 24, 2009
  16. Junio C HamanoJun 24, 2009
  17. Paolo BonziniJun 24, 2009
  18. Finn Arne GangstadJun 24, 2009

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.