Squashed 'third_party/git/' content from commit cb71568594
git-subtree-dir: third_party/git git-subtree-split: cb715685942260375e1eb8153b0768a376e4ece7
This commit is contained in:
commit
1b593e1ea4
3629 changed files with 1139935 additions and 0 deletions
3
t/t4135/.gitignore
vendored
Normal file
3
t/t4135/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/file-creation/
|
||||
/trad-creation/
|
||||
/trad-modification/
|
||||
5
t/t4135/add-plain.diff
Normal file
5
t/t4135/add-plain.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
diff -pruN a/postimage.txt b/postimage.txt
|
||||
--- a/postimage.txt 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/postimage.txt 2010-08-18 20:13:31.484002255 -0500
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
5
t/t4135/add-with backslash.diff
Normal file
5
t/t4135/add-with backslash.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
diff -pruN a/post\image.txt b/post\image.txt
|
||||
--- a/post\image.txt 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/post\image.txt 2010-08-18 20:13:31.692002255 -0500
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
5
t/t4135/add-with quote.diff
Normal file
5
t/t4135/add-with quote.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
diff -pruN a/"postimage".txt b/"postimage".txt
|
||||
--- a/"postimage".txt 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/"postimage".txt 2010-08-18 20:13:31.756002255 -0500
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
5
t/t4135/add-with spaces.diff
Normal file
5
t/t4135/add-with spaces.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
diff -pruN a/post image.txt b/post image.txt
|
||||
--- a/post image.txt 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/post image.txt 2010-08-18 20:13:31.556002255 -0500
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
5
t/t4135/add-with tab.diff
Normal file
5
t/t4135/add-with tab.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
diff -pruN a/post image.txt b/post image.txt
|
||||
--- a/post image.txt 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/post image.txt 2010-08-18 20:13:31.628002255 -0500
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
5
t/t4135/damaged-tz.diff
Normal file
5
t/t4135/damaged-tz.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
diff -urN -X /usr/people/jes/exclude-linux linux-2.6.12-rc2-mm3-vanilla/post image.txt linux-2.6.12-rc2-mm3/post image.txt
|
||||
--- linux-2.6.12-rc2-mm3-vanilla/post image.txt 1969-12-31 16:00:00 -08:00
|
||||
+++ linux-2.6.12-rc2-mm3/post image.txt 2005-04-12 02:14:06 -07:00
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
5
t/t4135/damaged.diff
Normal file
5
t/t4135/damaged.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
diff -pruN a/postimage.txt b/postimage.txt
|
||||
--- a/postimage.txt 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/postimage.txt 2010-08-18 20:13:31.484002255 -0500
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
5
t/t4135/diff-plain.diff
Normal file
5
t/t4135/diff-plain.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--- postimage.txt.orig 2010-08-18 20:13:31.432002255 -0500
|
||||
+++ postimage.txt 2010-08-18 20:13:31.432002255 -0500
|
||||
@@ -1 +1 @@
|
||||
-preimage
|
||||
+postimage
|
||||
5
t/t4135/diff-with backslash.diff
Normal file
5
t/t4135/diff-with backslash.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--- post\image.txt.orig 2010-08-18 20:13:31.680002255 -0500
|
||||
+++ post\image.txt 2010-08-18 20:13:31.680002255 -0500
|
||||
@@ -1 +1 @@
|
||||
-preimage
|
||||
+postimage
|
||||
5
t/t4135/diff-with quote.diff
Normal file
5
t/t4135/diff-with quote.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--- "postimage".txt.orig 2010-08-18 20:13:31.744002255 -0500
|
||||
+++ "postimage".txt 2010-08-18 20:13:31.744002255 -0500
|
||||
@@ -1 +1 @@
|
||||
-preimage
|
||||
+postimage
|
||||
5
t/t4135/diff-with spaces.diff
Normal file
5
t/t4135/diff-with spaces.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--- post image.txt.orig 2010-08-18 20:13:31.544002255 -0500
|
||||
+++ post image.txt 2010-08-18 20:13:31.544002255 -0500
|
||||
@@ -1 +1 @@
|
||||
-preimage
|
||||
+postimage
|
||||
5
t/t4135/diff-with tab.diff
Normal file
5
t/t4135/diff-with tab.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--- post image.txt.orig 2010-08-18 20:13:31.616002255 -0500
|
||||
+++ post image.txt 2010-08-18 20:13:31.616002255 -0500
|
||||
@@ -1 +1 @@
|
||||
-preimage
|
||||
+postimage
|
||||
5
t/t4135/funny-tz.diff
Normal file
5
t/t4135/funny-tz.diff
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
diff -urN -X /usr/people/jes/exclude-linux linux-2.6.12-rc2-mm3-vanilla/post image.txt linux-2.6.12-rc2-mm3/post image.txt
|
||||
--- linux-2.6.12-rc2-mm3-vanilla/post image.txt 1969-12-31 16:00:00 -08:00
|
||||
+++ linux-2.6.12-rc2-mm3/post image.txt 2005-04-12 02:14:06 -07:00
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
7
t/t4135/git-plain.diff
Normal file
7
t/t4135/git-plain.diff
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
diff --git a/postimage.txt b/postimage.txt
|
||||
new file mode 100644
|
||||
index 0000000..eff0c54
|
||||
--- /dev/null
|
||||
+++ b/postimage.txt
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
7
t/t4135/git-with backslash.diff
Normal file
7
t/t4135/git-with backslash.diff
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
diff --git "a/post\\image.txt" "b/post\\image.txt"
|
||||
new file mode 100644
|
||||
index 0000000..eff0c54
|
||||
--- /dev/null
|
||||
+++ "b/post\\image.txt"
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
7
t/t4135/git-with quote.diff
Normal file
7
t/t4135/git-with quote.diff
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
diff --git "a/\"postimage\".txt" "b/\"postimage\".txt"
|
||||
new file mode 100644
|
||||
index 0000000..eff0c54
|
||||
--- /dev/null
|
||||
+++ "b/\"postimage\".txt"
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
7
t/t4135/git-with spaces.diff
Normal file
7
t/t4135/git-with spaces.diff
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
diff --git a/post image.txt b/post image.txt
|
||||
new file mode 100644
|
||||
index 0000000..eff0c54
|
||||
--- /dev/null
|
||||
+++ b/post image.txt
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
7
t/t4135/git-with tab.diff
Normal file
7
t/t4135/git-with tab.diff
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
diff --git "a/post\timage.txt" "b/post\timage.txt"
|
||||
new file mode 100644
|
||||
index 0000000..eff0c54
|
||||
--- /dev/null
|
||||
+++ "b/post\timage.txt"
|
||||
@@ -0,0 +1 @@
|
||||
+postimage
|
||||
45
t/t4135/make-patches
Executable file
45
t/t4135/make-patches
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
#!/bin/sh
|
||||
|
||||
do_filename() {
|
||||
desc=$1
|
||||
postimage=$2
|
||||
|
||||
rm -fr file-creation &&
|
||||
git init file-creation &&
|
||||
(
|
||||
cd file-creation &&
|
||||
git commit --allow-empty -m init &&
|
||||
echo postimage >"$postimage" &&
|
||||
git add -N "$postimage" &&
|
||||
git diff HEAD >"../git-$desc.diff"
|
||||
) &&
|
||||
|
||||
rm -fr trad-modification &&
|
||||
mkdir trad-modification &&
|
||||
(
|
||||
cd trad-modification &&
|
||||
echo preimage >"$postimage.orig" &&
|
||||
echo postimage >"$postimage" &&
|
||||
! diff -u "$postimage.orig" "$postimage" >"../diff-$desc.diff"
|
||||
) &&
|
||||
|
||||
rm -fr trad-creation &&
|
||||
mkdir trad-creation &&
|
||||
(
|
||||
cd trad-creation &&
|
||||
mkdir a b &&
|
||||
echo postimage >"b/$postimage" &&
|
||||
! diff -pruN a b >"../add-$desc.diff"
|
||||
)
|
||||
}
|
||||
|
||||
do_filename plain postimage.txt &&
|
||||
do_filename 'with spaces' 'post image.txt' &&
|
||||
do_filename 'with tab' 'post image.txt' &&
|
||||
do_filename 'with backslash' 'post\image.txt' &&
|
||||
do_filename 'with quote' '"postimage".txt' &&
|
||||
expand add-plain.diff >damaged.diff ||
|
||||
{
|
||||
echo >&2 Failed. &&
|
||||
exit 1
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue