6 function fixup_time_info
9 touch -a -m -t "$TOUCH_DATE" ".git/patches/a,graph/$1"
13 source "$REG_DIR/scaffold"
17 # Check that "guilt graph" gives a proper "No patch applied" error
18 # message when no patches are applied. (An older version of guilt
19 # used to enter an endless loop in this situation.)
20 shouldfail guilt graph
22 echo "%% Testing branch a,graph"
23 cmd git checkout
-b a
,graph master
29 fixup_time_info a.
patch
32 cmd
echo a
>> file.txt
35 fixup_time_info a.
patch
38 echo "%% Adding an unrelated file in a new patch. No deps."
40 cmd
echo b
>> file2.txt
43 fixup_time_info b.
patch
46 echo "%% Changing a file already changed in the first patch adds a dependency."
48 cmd
echo c
>> file.txt
51 fixup_time_info c.
patch
54 # A patch name that contains funky characters, including unbalanced
56 cmd guilt new
"a-\"better&quicker'-patch.patch"
57 cmd
echo d
>> file.txt
60 fixup_time_info
"a-\"better&quicker'-patch.patch"
63 echo "%% The same graph, but excluding deps introduced by file.txt."
64 cmd guilt graph
-x file.txt