Skip to content

Commit f5633bc

Browse files
committed
Delete file .uncommitted-patches if it's empty
1 parent cc49381 commit f5633bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git-recommit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ if [ -z "$f" ]; then
3737
f="$(tail -n1 .uncommitted-patches|sed "s/^Uncommit: //")"
3838
sed -i "$ d" .uncommitted-patches
3939
fi
40+
41+
# Delete .uncommitted-patches if it's empty
42+
if [ -e .uncommitted-patches ]; then
43+
[ -s .uncommitted-patches ] || rm .uncommitted-patches
44+
fi
4045
fi
4146

4247
if [ -z "$f" ]; then

0 commit comments

Comments
 (0)