6 source $REG_DIR/scaffold
10 function fixup_time_info
12 touch -a -m -t "$TOUCH_DATE" ".git/patches/master/$1"
15 for pname
in file dir
/file dir
/subdir
/file ; do
16 cmd guilt-new
"$pname"
18 fixup_time_info
"$pname"
28 fixup_time_info append
37 fixup_time_info prepend
42 shouldfail guilt-new
"white space"
46 for pname
in prepend mode
/abc .
/blah ..
/blah abc
/.
/blah abc
/..
/blah abc
/. abc
/.. abc
/ ; do
47 shouldfail guilt-new
"$pname" 2>&1
56 # modify the working dir file
57 cmd
echo qwerty
>> def
60 # try to make a new patch, without -f
61 shouldfail guilt new uncommitted-changes
65 # give new -f, to force things
66 cmd guilt new
-f uncommitted-changes
69 fixup_time_info uncommitted-changes
73 # modify the working dir file (again)
74 cmd
echo dvorak
>> def
75 cmd git update-index def
79 # try to make a new patch, without -f
80 shouldfail guilt new uncommitted-changes2
85 # give new -f, to force things
86 cmd guilt new
-f uncommitted-changes2
90 fixup_time_info uncommitted-changes2