On Tue, 2005-03-22 at 10:27 -0500, Deliverable Mail wrote:
> Using bash, I run 'tla changes' with <up-arrow, enter> all the time. 
> When I missed accidentally and hit enter on a 'tla commit -s
> "<note>"', it surprisingly commits again, although it was just run and
> no new changes were made.  It still creates a "patch-<++N>" in {arch},
> which shows in now carefully typed 'tla changes'.  How do I prevent
> such empty commits?

Short answer: you don't.

Longer answer: you may use a precommit hook or a wrapper that runs "tla
changes" to make sure there are actually changes before committing. But
that will significantly slow down committing.

Alternative solution: branch baz to prevent empty commits and provid a
"baz commit --empty-ok" option, I think such a patch would be welcome
there.

-- 
                                                            -- ddaa

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Gnu-arch-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-arch-users

GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/

Reply via email to