From: Junio C Hamano Date: Sun, 15 Feb 2009 07:54:34 GMT Subject: Re: [PATCH v2 1/5] notes: only clean up message file when editing Message-ID: <7vr620nnid.fsf@gitster.siamese.dyndns.org> In-Reply-To: <4655551d70d8829a7a15219aef384deb4e63371a.1234642638.git.trast@student.ethz.ch> Thomas Rast writes: > + MESSAGE="$GIT_DIR"/new-notes-$COMMIT > + trap ' > + test -f "$MESSAGE" && rm "$MESSAGE" > + ' 0 > + Hmph, why not unconditionally rm -f "$MESSAGE" without test?