Skip to content

Instantly share code, notes, and snippets.

@vi
Created March 7, 2012 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vi/1997196 to your computer and use it in GitHub Desktop.
Save vi/1997196 to your computer and use it in GitHub Desktop.
"git diff --no-index" beheviour on special files
$ diff -ur <(printf 'a\nb\nc\n') <(printf 'a\nd\nc\n')
--- /dev/fd/63 2012-03-08 02:27:23.088325870 +0300
+++ /dev/fd/62 2012-03-08 02:27:23.088325870 +0300
@@ -1,3 +1,3 @@
a
-b
+d
c
$ git diff --no-index <(printf 'a\nb\nc\n') <(printf 'a\nd\nc\n')
diff --git a/dev/fd/63 b/dev/fd/62
index 33d340f..1b195c6 120000
--- a/dev/fd/63
+++ b/dev/fd/62
@@ -1 +1 @@
-pipe:[599532]
\ No newline at end of file
+pipe:[599534]
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment