Code

revert: prettify fatal messages
authorRamkumar Ramachandra <artagnon@gmail.com>
Tue, 15 Nov 2011 09:31:32 +0000 (15:01 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Nov 2011 00:59:46 +0000 (16:59 -0800)
commit5e1e6b93d024b5a01f4e957a2bedba899cb22f68
tree9342f5a6601475df6c95c02eaeb18aa337dc6a34
parentf0c7fd49c0b9454808486e8c56cd3d9c022d56f2
revert: prettify fatal messages

Some of the fatal messages printed by revert and cherry-pick look ugly
like the following:

  fatal: Could not open .git/sequencer/todo.: No such file or directory

The culprit here is that these callers of the die_errno() function did not
take it into account that the message string they give to it is followed
by ": <strerror>", hence the message typically should not end with the
full-stop.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c