6 source "$REG_DIR/scaffold"
8 function fixup_time_info
11 touch -a -m -t "$TOUCH_DATE" ".git/patches/master/$1"
18 # incremental push by 1
20 guilt series |
while read n
; do
27 # pushing when there is nothing to push
41 # push by name (initially nothing applied)
43 guilt series |
while read n
; do
52 # push by name (incrementally)
54 guilt series |
while read n
; do
65 npatches
=`guilt series | wc -l`
66 for n
in `_seq -2 $npatches`; do
70 shouldfail guilt push
-n $n
80 # push an empty patch with no commit message
81 cmd guilt new empty.
patch
82 fixup_time_info empty.
patch
85 # Ensure we can push the empty patch even when guilt.diffstat is true.
86 cmd git config guilt.diffstat true
88 fixup_time_info empty.
patch
90 cmd git config guilt.diffstat false
92 # Let the patch have a commit message, but no data.
93 cat > .git
/patches
/master
/empty.
patch <<EOF
96 From: Per Cederqvist <ceder@lysator.liu.se>
98 This commit fixes a serious bug.
106 fixup_time_info empty.
patch
109 # And once more, with an empty diffstat.
111 cmd git config guilt.diffstat true
113 fixup_time_info empty.
patch
116 # Restore the diffstat setting and remove the empty patch.
117 cmd git config guilt.diffstat false
119 fixup_time_info empty.
patch
121 # (Cannot delete an applied patch)
122 shouldfail guilt delete empty.
patch
124 cmd guilt delete
-f empty.
patch
130 # -n with some patches already applied