diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2012-07-30 21:30:05 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@linbit.com> | 2012-07-31 21:58:24 +0200 |
commit | 6e21796422a7a83f727c201ee741cb156af36744 (patch) | |
tree | 7df0901b377d5c22e86056aaea50cae54557f82e | |
parent | 90d4e1f3d5fe04e3fb60ec21fb2a943cc90b0c75 (diff) | |
download | patch-6e21796422a7a83f727c201ee741cb156af36744.tar.gz |
Add missing "diff --git" index lines
* tests/copy-rename, tests/criss-cross, tests/file-modes,
tests/mixed-patch-types, tests/quoted-filenames: Add missing index lines in the
"dif --git" test cases: We will use some of them for consistency checks soon.
-rw-r--r-- | tests/copy-rename | 2 | ||||
-rw-r--r-- | tests/file-modes | 2 | ||||
-rw-r--r-- | tests/mixed-patch-types | 4 | ||||
-rw-r--r-- | tests/quoted-filenames | 1 |
4 files changed, 9 insertions, 0 deletions
diff --git a/tests/copy-rename b/tests/copy-rename index 4970dec..40f53d1 100644 --- a/tests/copy-rename +++ b/tests/copy-rename @@ -21,6 +21,7 @@ cat > copy.diff <<EOF diff --git a/f b/g copy from f copy to g +index 3367afd..3e75765 100644 --- a/f +++ b/g @@ -1 +1 @@ @@ -44,6 +45,7 @@ cat > rename.diff <<EOF diff --git a/f b/h rename from f rename to h +index 3367afd..3e75765 100644 --- a/f +++ b/h @@ -1 +1 @@ diff --git a/tests/file-modes b/tests/file-modes index e43a083..e71c209 100644 --- a/tests/file-modes +++ b/tests/file-modes @@ -19,6 +19,7 @@ cat > f.diff <<EOF diff --git a/f b/f old mode 100644 new mode 100600 +index 3367afd..3e75765 --- a/f +++ a/f @@ -1 +1 @@ @@ -28,6 +29,7 @@ new mode 100600 diff --git a/g b/g old mode 100644 new mode 100600 +index 3367afd..3e75765 --- a/g +++ a/g @@ -1 +1 @@ diff --git a/tests/mixed-patch-types b/tests/mixed-patch-types index 1339e9f..abd6031 100644 --- a/tests/mixed-patch-types +++ b/tests/mixed-patch-types @@ -20,6 +20,8 @@ diff a/f b/f @@ -0,0 +1 @@ +f diff --git a/g b/g +new file mode 100644 +index 0000000..01058d8 --- a/g +++ b/g @@ -0,0 +1 @@ @@ -35,6 +37,8 @@ EOF cat > mixed2.diff <<EOF diff --git a/f b/f +new file mode 100644 +index 0000000..6a69f92 --- a/f +++ b/f @@ -0,0 +1 @@ diff --git a/tests/quoted-filenames b/tests/quoted-filenames index d1fbe88..92aae6c 100644 --- a/tests/quoted-filenames +++ b/tests/quoted-filenames @@ -19,6 +19,7 @@ use_tmpdir cat > d.diff <<EOF diff --git "\\t \\040" "\\t \\040" +index 5626abf..f719efd 100644 --- "\\t \\040" +++ "\\t \\040" @@ -1 +1 @@ |