From: Edgar Toernig Date: Mon, 09 May 2005 03:28:14 GMT Subject: Re: [PATCH Cogito] Make use of external editor work like CVS Message-ID: <20050509052814.617dceac.froese@gmx.de> In-Reply-To: <20050508210857.GL9495@pasky.ji.cz> Petr Baudis wrote: > > > + if ! [ $LOGMSG2 -nt $LOGMSG ]; then > > + rm $LOGMSG $LOGMSG2 > > + die 'Commit message not modified, commit aborted' > > + fi Just in case you come to a conclusion some day, how about changing the if-test to if cmp -s $LOGMSG LOGMSG2; then ? :-) IMHO much better then comparing only the date. Ciao, ET.