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

Re: cogito "origin" vs. HEAD

From
Petr Baudis <pasky@ucw.cz>
Date
May 3, 2005, 06:49 UTC
Message-ID
<20050503064943.GB10244@pasky.ji.cz>
In-Reply-To
<1115090660.6156.56.camel@gaston>

Dear diary, on Tue, May 03, 2005 at 05:24:19AM CEST, I got a letter where Benjamin Herrenschmidt <benh@kernel.crashing.org> told me that...

> Hi !
Hi,
Show 6 quoted lines
> So when I later do cg-pull or cg-update origin to update, my "origin"
> pointer is updated I suppose to the new head of the remote repository,
> does it also update my local "refs/heads/master" ? Or not ? What happens
> to it ? does anything will use my local HEAD -> refs/heads/master/
> ever ? If I want to publish my tree, what will remote cogito's try to
> rsync down ? HEAD ? origin ?

when accessing the remote repository, Cogito always looks for remote refs/heads/master first - if that one isn't there, it takes HEAD, but there is no correlation between the local and remote branch name. If you want to fetch a different branch from the remote repository, use the fragment identifier (see cg-help cg-branch-add).

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Benjamin HerrenschmidtNext: Benjamin Herrenschmidt
Message 2 of 6 in “cogito "origin" vs. HEAD”
  1. Benjamin HerrenschmidtMay 3, 2005
  2. Petr BaudisMay 3, 2005
  3. Benjamin HerrenschmidtMay 3, 2005
  4. Alexey NezhdanovMay 3, 2005
  5. Petr BaudisMay 3, 2005
  6. Benjamin HerrenschmidtMay 3, 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.