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

Re: Making note, in the repository, of push/pull relationships

From
Junio C Hamano <junkio@cox.net>
Date
Aug 16, 2005, 21:09 UTC
Message-ID
<7vll318u8b.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050816171142.GB20016@hpsvcnb.fc.hp.com>
Carl Baldwin <cnb@fc.hp.com> writes:
Show 20 quoted lines
> If I may, let me give an example of something I think could serve the
> purpose a little more simply and generically.
>
> Let's say I start with the following:
> % ls .git/refs/heads
> master
> mylocalbranch
> myremotebranch
> ko-master
> % cat .git/branches/ko-master
> master.kernel.org:/pub/scm/git/git.git
>
> I would add something like this:  (I didn't put much thought into the
> actual directory and file names, forgive me.  ;-)
>
> % cat .git/branches/relationships
> pull:ko-master:master
> pull:master:mylocalbranch # The next two document my flow locally
> pull:mylocalbranch:master
> push:master:myremotebranch # I push my master to a remote that I control

And presumably you have .git/branches/myremotebranch file that says something like "master.kernel.org:/pub/scm/git/git.git". Or should the last line of relationships file be spelled just push:master:ko-master?

Show 6 quoted lines
> % cat .git/remotes/ko
> push: master:ko-master pu:ko-pu rc:ko-rc
> pull: ko-master:master ko-pu:pu ko-rc:rc
>
> I might argue that this is now a job for a porcelain script or
> something.
Probably.

My primary interest in discussing this is to see Porcelain folks agree on what notation and semantics to use, and probably set an example by having the minimum base in the barebone Porcelain.

Personally I think there are two kinds of patch-flow: one that is pretty much static that can easily be described with something like your relationships notation, and ad-hoc one that I think should not automatically contaminate the established static flow your relationships notation nicely describes. The corporate world may put disproportional stress on the importance of the former, but my feeling is that ad-hoc patch-flow that is outside your usual static patch-flow is just as important; see Documentation/howto/using-topic-branches.txt for why.

Previous: Carl BaldwinNext: Carl Baldwin
Message 7 of 8 in “Making note, in the repository, of push/pull relationships”
  1. Carl BaldwinAug 15, 2005
  2. Johannes SchindelinAug 15, 2005
  3. Carl BaldwinAug 16, 2005
  4. Johannes SchindelinAug 16, 2005
  5. Junio C HamanoAug 16, 2005
  6. Carl BaldwinAug 16, 2005
  7. Junio C HamanoAug 16, 2005
  8. Carl BaldwinAug 16, 2005

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.