Skip to content

Commit

Permalink
Clean mail files after dealing with them.
Browse files Browse the repository at this point in the history
When you are applying 200 mails in sequence, .dotest/ directory
will be littered with many messsages, and when the patch in one
of them fails to apply, it is not obvious which message was
being processed.  Remove the one that has been already dealt
with, so that the last failed one is found typically as the
lowest numbered split message.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Oct 6, 2005
1 parent 47f0b6d commit 4ebe63d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git-applymbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ do
do
git-applypatch .dotest/msg-clean .dotest/patch .dotest/info "$signoff"
case "$?" in
0 | 2 )
0)
# Remove the cleanly applied one to reduce clutter.
rm -f .dotest/$i
;;
2)
# 2 is a special exit code from applypatch to indicate that
# the patch wasn't applied, but continue anyway
;;
Expand Down

0 comments on commit 4ebe63d

Please sign in to comment.