WHAT?

Oh, this is embarrassing...

All this time I've been typing something (like the word 'ACCIDENT') in the editor thinking I have already started the commit process and I would complete the commit when I exit the editor, so I always typed something to know that this commit was a mistake. I didn't know that typing nothing would cancel the operation.

But, in my defense, (and I just re-read it to be sure I didn't miss it) nowhere in the help documentation (FOSSIL HELP COMMIT) or the comment in the editor (# Enter commit message for this check-in. Lines beginning with # are ignored.) does it say, or even imply, that an empty comment is one of the reasons that will 'abort' the commit.

LOL!!!

Thanks.

-----Original Message----- From: Martin Gagnon
Sent: Monday, April 14, 2014 3:24 PM
To: Fossil SCM user's discussion
Subject: Re: [fossil-users] Suggestion about fossil commit

On Mon, Apr 14, 2014 at 02:55:51PM +0300, Tony Papadimitriou wrote:
I often have the same problem for a different reason. I type “f cha” and “f
com” so often that sometime instead of “f cha” I accidentally type “f com”.

What I would like to have is an extra prompt, “Are you sure (y/N)?” with No default for commits. Since commits are irreversible, I think the extra prompt to safeguard against typing accidents will be welcome by most users without adding too much burden to each commit. Then again, it could also be activated
via some setting so those who don’t want it can do without it.


Since fossil commit start an editor and having empty commit message give
you a kind of "Are you sure" prompt already, how can you commit by
mistake when typing "f com" instead of "f cha" ?

It's not like you will type:   f com -m "some text" when you were about
to type "f cha" ...

Regards.

--
Martin G.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to