Created
August 30, 2012 16:04
-
-
Save loicm/3531809 to your computer and use it in GitHub Desktop.
git diff with --word-diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git diff HEAD^ HEAD | |
diff --git a/foo.txt b/foo.txt | |
index fbe6624..1803e6a 100644 | |
--- a/foo.txt | |
+++ b/foo.txt | |
@@ -1 +1 @@ | |
-Ceci est une poule. | |
+Ceci est un poulet. | |
$ git diff --word-diff=plain HEAD^ HEAD | |
diff --git a/foo.txt b/foo.txt | |
index fbe6624..1803e6a 100644 | |
--- a/foo.txt | |
+++ b/foo.txt | |
@@ -1 +1 @@ | |
Ceci est [-une poule.-]{+un poulet.+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment