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
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
24 # patch to add a new file
25 cat << DONE > .git/patches/master/add
26 diff --git a/abd b/abd
28 index 0000000..489450e
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
46 # patch to change a mode
47 cat << DONE > .git/patches/master/mode
48 diff --git a/def b/def
53 # the series file of all the things
54 cat << DONE > .git/patches/master/series