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 directorySo 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?