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

Re: git diffs

From
Matthias Urlichs <smurf@smurf.noris.de>
Date
Aug 1, 2005, 07:55 UTC
Message-ID
<pan.2005.08.01.07.55.40.43904@smurf.noris.de>
In-Reply-To
<Pine.LNX.4.58.0507311725590.14342@g5.osdl.org>
Hi, Linus Torvalds wrote:
Show 7 quoted lines
> 	git checkout -f master
> 	git-rev-parse master > .git/refs/heads/merge-branch
> 
> 	#
> 	# Switch to it, always leaving "master" untouched
> 	#
> 	git checkout -f merge-branch
Isn't that equivalent to (but slower than)
    git checkout -f -b merge-branch master
?
-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
You can tell it's going to be a rotten day when the bird singing outside your
window is a buzzard.
Previous: Linus TorvaldsNext: Linus Torvalds
Message 2 of 3 in “Re: git diffs”
  1. Linus TorvaldsAug 1, 2005
  2. Matthias UrlichsAug 1, 2005
  3. Linus TorvaldsAug 1, 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.