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

Re: Version of dirdiff to display diffs between git trees

From
KHKrzysztof Halasa <khc@pm.waw.pl>
Date
May 6, 2005, 18:53 UTC
Message-ID
<m3d5s4jieh.fsf@defiant.localdomain>
In-Reply-To
<Pine.LNX.4.58.0505060916320.2233@ppc970.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 6 quoted lines
> 	cat .git/ORIG_HEAD > .git/HEAD
> 	git-read-tree -m HEAD
> 	git-checkout-cache -f -a
> 	git-update-cache --refresh
>
> and you're back to your original head (the above is basically "unpull").

So, is "git-read-tree -m HEAD" actually equivalent to "git-read-tree HEAD" and does it simply write complete index (ignoring the old one) corresponding to given HEAD?

-- 
Krzysztof Halasa
Previous: Linus TorvaldsNext: Linus Torvalds
Message 3 of 5 in “Version of dirdiff to display diffs between git trees”
  1. Paul MackerrasMay 6, 2005
  2. Linus TorvaldsMay 6, 2005
  3. Krzysztof HalasaMay 6, 2005
  4. Linus TorvaldsMay 6, 2005
  5. Paul MackerrasMay 7, 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.