Signed-off-by: Junio C Hamano <junkio@cox.net>
+++ b/file.txt
@@ -1 +1,2 @@
hello world!
+++ b/file.txt
@@ -1 +1,2 @@
hello world!
$ git update-index file.txt
$ git diff
------------------------------------------------
$ git update-index file.txt
$ git diff
------------------------------------------------
+++ b/file.txt
@@ -1 +1,2 @@
hello world!
+++ b/file.txt
@@ -1 +1,2 @@
hello world!
------------------------------------------------
So "git diff" is comparing against something other than the head.
------------------------------------------------
So "git diff" is comparing against something other than the head.