X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-diff-index.txt;h=c0b7c581add35e24128a6b7e9aa79a50f914aad5;hb=7140c22c8e98042053d5ff63c8514f5cdf1cb6ed;hp=6d184864022cef90e284113a627103db99327052;hpb=d98a509ec3e9ff22bb642f778900691d0c715ba9;p=git.git diff --git a/Documentation/git-diff-index.txt b/Documentation/git-diff-index.txt index 6d1848640..c0b7c581a 100644 --- a/Documentation/git-diff-index.txt +++ b/Documentation/git-diff-index.txt @@ -8,6 +8,7 @@ git-diff-index - Compares content and mode of blobs between the index and reposi SYNOPSIS -------- +[verse] 'git diff-index' [-m] [--cached] [] [...] DESCRIPTION @@ -96,8 +97,8 @@ show that. So let's say that you have edited `kernel/sched.c`, but have not actually done a 'git update-index' on it yet - there is no "object" associated with the new state, and you get: - torvalds@ppc970:~/v2.6/linux> git diff-index HEAD - *100644->100664 blob 7476bb......->000000...... kernel/sched.c + torvalds@ppc970:~/v2.6/linux> git diff-index --abbrev HEAD + :100644 100664 7476bb... 000000... kernel/sched.c i.e., it shows that the tree has changed, and that `kernel/sched.c` has is not up-to-date and may contain new stuff. The all-zero sha1 means that to