demonstrate git-commit --dry-run exit code behaviour
commit9cbcc2a7ca5b09ff57b52b7f6e422228f6cfd451
authorTay Ray Chuan <rctay89@gmail.com>
Fri, 21 Feb 2014 19:16:54 +0000 (22 03:16 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2014 17:16:53 +0000 (24 09:16 -0800)
tree9e222f23a65644a855e1225a72deee2e05d6d7e6
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac
demonstrate git-commit --dry-run exit code behaviour

In particular, show that --short and --porcelain, while implying
--dry-run, do not return the same exit code as --dry-run. This is due to
the wt_status.commitable flag being set only when a long status is
requested.

No fix is provided here; with [1], it should be trivial to fix though -
just a matter of calling wt_status_mark_commitable().

[1] http://article.gmane.org/gmane.comp.version-control.git/242489

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7501-commit.sh