Information Technology Reference
In-Depth Information
The output of the above command is shown in Listing 13-4 .
Listing 13-4. The output of the $ git diff --unified=1 HEAD HEAD command
diff --git a/numbers.txt b/numbers.txt
index f5ef170..a769e64 100644
--- a/numbers.txt
+++ b/numbers.txt
@@ -3,6 +3,4 @@ two
three
-four
-five
-six
-seven
+foo
+bar
Eight
The additional parameter --unified=1 changed the number of lines preceding
and following the changed content.
How It Works
The command $ git diff uses the format defined by GNU diffutils tools available
at:
http://www.gnu.org/software/diffutils/
The $ git diff command produces the output conforming to the following
format:
--- a/some-file-name
+++ b/some-file-name
@@ -a,b +c,d @@
xxx
+yyy
-zzz
qqq
 
 
Search WWH ::




Custom Search