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

Re: tool to diff cache <-> working directory

From
TGThomas Glanzmann <sithglan@stud.uni-erlangen.de>
Date
May 6, 2005, 02:07 UTC
Message-ID
<20050506020759.GA11506@cip.informatik.uni-erlangen.de>
In-Reply-To
<7vhdhhf88u.fsf@assigned-by-dhcp.cox.net>
Hello,
>     git-diff-tree tree1 tree2           two trees
>     git-diff-cache --cached tree1	  cache and tree
>     git-diff-cache tree1		  tree and working directory
>     git-diff-files                      cache and working directory
that makes it clear. Thanks.
> So git-diff-files is not just similar to but exactly is what you
> want if I read your question correctly.
Yes, it is. :-)
> Yes there is a way, git-write-blob, but why would you want to do
> that?

I thought there would be no cache<->working directory delta generation. And I need a way to see if there are unchecked-in deltas in the working tree. So I thought about looking at the 'git-diff-cache --cached tree1' and comparing it with the self generated SHAs of the working tree. But now, that there is such a tool, I am perfectly fine.

Thanks,
	Thomas
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “tool to diff cache <-> working directory”
  1. Thomas GlanzmannMay 6, 2005
  2. Junio C HamanoMay 6, 2005
  3. Thomas GlanzmannMay 6, 2005
  4. Junio C HamanoMay 6, 2005
  5. Thomas GlanzmannMay 6, 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.