Skip to content

Instantly share code, notes, and snippets.

@loicm
Created August 30, 2012 16:04
Show Gist options
  • Select an option

  • Save loicm/3531809 to your computer and use it in GitHub Desktop.

Select an option

Save loicm/3531809 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Aug 30, 2012.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    $ 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.+}