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

Switching heads and head vs branch after CVS import

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Aug 15, 2005, 00:24 UTC
Message-ID
<46a038f905081417241f9598cc@mail.gmail.com>

After having done a cvs import of Moodle using git-cvsimport-script all the cvs branches show up as heads. How do I switch heads within a checkout? cogito doesn't seem to be able to, and I'm unsure on how to do it with git.

And I am confused about the difference between heads and branches. Git and cogito seem prepared to merge across the heads (using cg-update for instance, when pointed to a different head merged it in, rather than switched to it), that would match a workflow where a group of people maintain very closely related heads and merge constantly across.

Branches don't seem to have the same expectation or support in the toolset. Why? What makes a branch different from a head, apart from the fact that they would be expected to drift further apart?

In any case, should the cvsimport turn cvs branches into git branches instead of heads? Is there are way to turn a head into a proper branch?

cheers,
martin
Next: Junio C Hamano
Message 1 of 16 in “Switching heads and head vs branch after CVS import”
  1. Martin LanghoffAug 15, 2005
  2. Junio C HamanoAug 15, 2005
  3. Linus TorvaldsAug 15, 2005
  4. Martin LanghoffAug 15, 2005
  5. Linus TorvaldsAug 15, 2005
  6. Sven VerdoolaegeAug 15, 2005
  7. Matthias UrlichsAug 15, 2005
  8. Martin LanghoffAug 15, 2005
  9. Wolfgang DenkAug 15, 2005
  10. Matthias UrlichsAug 15, 2005
  11. Sven VerdoolaegeAug 15, 2005
  12. Linus TorvaldsAug 15, 2005
  13. Martin LanghoffAug 15, 2005
  14. Wolfgang DenkAug 15, 2005
  15. Linus TorvaldsAug 15, 2005
  16. Johannes SchindelinAug 15, 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.