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

Re: tool to diff cache <-> working directory

From
Junio C Hamano <junkio@cox.net>
Date
May 6, 2005, 01:33 UTC
Message-ID
<7vhdhhf88u.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050506002347.GU20994@cip.informatik.uni-erlangen.de>
>>>>> "TG" == Thomas Glanzmann <sithglan@stud.uni-erlangen.de> writes:

TG> Is there a tool to compare cache with working directory TG> similiar to diff-tree, diff-cache and diff-files?

    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

So git-diff-files is not just similar to but exactly is what you want if I read your question correctly.

TG> Or is there a way to find out the SHA checksum of a file in TG> a working directory without adding it to a temporary cache?

Yes there is a way, git-write-blob, but why would you want to do that?

Previous: Thomas GlanzmannNext: Thomas Glanzmann
Message 2 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.