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

Re: git branch --switch?

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Apr 17, 2007, 16:50 UTC
Message-ID
<86y7kr0wst.fsf@blue.stonehenge.com>
In-Reply-To
<4624F18F.6070906@gmail.com>
>>>>> "Rene" == Rene Herman <rene.herman@gmail.com> writes:
Rene> Well, yes, they do, and I could also do

Rene> git branch b v2.6.20 Rene> git branch c v2.6.20

Rene> directly then (right?) but I do want that "v20" branch in the middle.
What does "in the middle" mean here?
If I set:
   b = a;
   c = a;
That's the same as if I said:
   b = a;
   c = b;

Why do you think those would be different? There's nothing recorded when you say "git branch X Y" except to make a new X that's a copy of the SHA1 of the old Y.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Previous: Rene HermanNext: Rene Herman
Message 12 of 18 in “git branch --switch?”
  1. Rene HermanApr 17, 2007
  2. Alex RiesenApr 17, 2007
  3. Rene HermanApr 17, 2007
  4. Brian GernhardtApr 17, 2007
  5. Alex RiesenApr 17, 2007
  6. Rene HermanApr 17, 2007
  7. Brian GernhardtApr 17, 2007
  8. Rene HermanApr 17, 2007
  9. Rene HermanApr 17, 2007
  10. Lars HjemliApr 17, 2007
  11. Rene HermanApr 17, 2007
  12. Randal L. SchwartzApr 17, 2007
  13. Rene HermanApr 17, 2007
  14. Lars HjemliApr 17, 2007
  15. Rene HermanApr 17, 2007
  16. Rene HermanApr 17, 2007
  17. Linus TorvaldsApr 17, 2007
  18. Rene HermanApr 17, 2007

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.