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"
51 for pname
in prepend mode
/abc .
/blah ..
/blah abc
/.
/blah abc
/..
/blah abc
/. \
52 abc
/.. abc
/ abc.lock a
/b.lock
/c
`b 'cr\r'` `b 'ctrl-a\001'` \
53 `b 'formfeed\f'` `b 'del\177'` "tilde~" "caret^" "colon:" \
54 "questionmark?" "asterisk*" "open[bracket" "consecutive//slashes" \
55 "trailing-dot." "bad@{seq" "@" "backslash\\"
57 shouldfail guilt new
"$pname"
66 # modify the working dir file
67 cmd
echo qwerty
>> def
70 # try to make a new patch, without -f
71 shouldfail guilt new uncommitted-changes
75 # give new -f, to force things
76 cmd guilt new
-f uncommitted-changes
79 fixup_time_info uncommitted-changes
83 # modify the working dir file (again)
84 cmd
echo dvorak
>> def
85 cmd git update-index def
89 # try to make a new patch, without -f
90 shouldfail guilt new uncommitted-changes2
95 # give new -f, to force things
96 cmd guilt new
-f uncommitted-changes2
100 fixup_time_info uncommitted-changes2