summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e31952d)
raw | patch | inline | side by side (parent: e31952d)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 22 May 2006 00:37:25 +0000 (17:37 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 22 May 2006 00:37:25 +0000 (17:37 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/tutorial-2.txt | patch | blob | history |
index a3d45ee569ef19a131bf8c8ca351b5b5203390c4..7de91aa73532ce91c88cf7b2865dd4d16cdf1782 100644 (file)
+++ b/file.txt
@@ -1 +1,2 @@
hello world!
- +hello world, again
++hello world, again
$ git update-index file.txt
$ git diff
------------------------------------------------
+++ b/file.txt
@@ -1 +1,2 @@
hello world!
- +hello world, again
++hello world, again
------------------------------------------------
So "git diff" is comparing against something other than the head.