summaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorAnders Melchiorsen <mail@cup.kalibalik.dk>2008-07-29 22:12:22 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-30 00:00:02 -0700
commitbd2574ca69331d33429f8806ce189b2941e490e7 (patch)
tree9d85e026114bc526c690bde46879bb538781b717 /builtin-commit.c
parentae7c5dcef92d46cfc8987fde2c264614fe475bd1 (diff)
downloadgit-bd2574ca69331d33429f8806ce189b2941e490e7.tar.gz
Advertise the ability to abort a commit
This treats aborting a commit more like a feature. Signed-off-by: Anders Melchiorsen <mail@cup.kalibalik.dk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index 9a11ca0bcd..f7c053a010 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -555,6 +555,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix)
fprintf(fp,
"\n"
"# Please enter the commit message for your changes.\n"
+ "# To abort the commit, use an empty commit message.\n"
"# (Comment lines starting with '#' will ");
if (cleanup_mode == CLEANUP_ALL)
fprintf(fp, "not be included)\n");