Makefile: Forgot to add guilt-patchbomb to the list of scripts
[guilt.git] / regression / generic_test_data
blobc1f05d5fa855401fed15e2adf75583dc30341ec9
1 #!/bin/bash
3 function generic_prepare_for_tests
5 export GIT_AUTHOR_DATE="2007-01-01 00:00:00 UTC"
6 export GIT_COMMITTER_DATE="2007-01-01 00:00:00 UTC"
8 # set up the repo so we have something interesting to run guilt on
9 echo "abc" > def
10 git-add def
11 git-commit -s -m "initial" 2> /dev/null > /dev/null
13 # patch to modify a file
14 cat << DONE > .git/patches/master/modify
15 diff --git a/def b/def
16 index 8baef1b..7d69c2f 100644
17 --- a/def
18 +++ b/def
19 @@ -1 +1,2 @@
20 abc
21 +asjhfksad
22 DONE
24 # patch to add a new file
25 cat << DONE > .git/patches/master/add
26 diff --git a/abd b/abd
27 new file mode 100644
28 index 0000000..489450e
29 --- /dev/null
30 +++ b/abd
31 @@ -0,0 +1 @@
32 +qweert
33 DONE
35 # patch to remove an existing file
36 cat << DONE > .git/patches/master/remove
37 diff --git a/abd b/abd
38 deleted file mode 100644
39 index 489450e..0000000
40 --- a/abd
41 +++ /dev/null
42 @@ -1 +0,0 @@
43 -qweert
44 DONE
46 # patch to change a mode
47 cat << DONE > .git/patches/master/mode
48 diff --git a/def b/def
49 old mode 100644
50 new mode 100755
51 DONE
53 # the series file of all the things
54 cat << DONE > .git/patches/master/series
55 modify
56 add
57 remove
58 mode
59 DONE