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

Re: README rewrite

From
Petr Baudis <pasky@ucw.cz>
Date
May 18, 2005, 21:42 UTC
Message-ID
<20050518214216.GF10358@pasky.ji.cz>
In-Reply-To
<20050516151604.GF7391@tumblerings.org>

Dear diary, on Mon, May 16, 2005 at 05:16:04PM CEST, I got a letter where Zack Brown <zbrown@tumblerings.org> told me that...

> So a branch is just a name for a cloned tree somewhere, the same as a tag is
> just a name for a revision some time in the past?
Very much so.
Show 21 quoted lines
> On Sun, May 15, 2005 at 07:28:03PM +0200, Petr Baudis wrote:
> > So the local branch is the "master" branch, the rest are "remote"
> > branches. Note that there is a theoretical support for multiple local
> > branches, but I decided not to make things even more confusing and there
> > is no Cogito interface for managing them now.
> 
> Is there anything about the repository that 'knows' which is the master branch,
> or is this just a matter of which person is in charge? So, if I have a project,
> and I have a Cogito repository, so far it's just me, and just one branch.
> 
> Then another person joins the project, and they clone my repository onto their
> local system, and give it their own branch name.
> 
> Now here is the question:
> 
> We decide that the other person is a better project leader, and we decide to use
> their branch as the master branch, and mine as just a remote branch.
> 
> Would that be normal Cogito behavior? i.e. there is nothing to distinguish a
> 'master' branch from any other except that it is the one everyone says is the
> master branch?

That's right. The "master" branch is just your local thing, as well as naming of the remote branches. The "master" branch name means this is the branch representing your working tree, not that it is the mainline of the project or anything. If you fork Linus' tree, in your repository your fork will be the "master" branch, and Linus' branch will be called however you name it.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Zack BrownNext: Matthias Urlichs
Message 10 of 12 in “README rewrite”
  1. Zack BrownMay 15, 2005
  2. Zack BrownMay 15, 2005
  3. Wink SavilleMay 15, 2005
  4. Zack BrownMay 15, 2005
  5. Wink SavilleMay 15, 2005
  6. Zack BrownMay 15, 2005
  7. Zack BrownMay 15, 2005
  8. Petr BaudisMay 15, 2005
  9. Zack BrownMay 16, 2005
  10. Petr BaudisMay 18, 2005
  11. Matthias UrlichsMay 15, 2005
  12. Petr BaudisMay 18, 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.