summaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorAnders Melchiorsen <mail@cup.kalibalik.dk>2008-07-29 20:12:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-30 07:00:02 (GMT)
commitbd2574ca69331d33429f8806ce189b2941e490e7 (patch)
tree9d85e026114bc526c690bde46879bb538781b717 /builtin-commit.c
parentae7c5dcef92d46cfc8987fde2c264614fe475bd1 (diff)
downloadgit-bd2574ca69331d33429f8806ce189b2941e490e7.zip
git-bd2574ca69331d33429f8806ce189b2941e490e7.tar.gz
git-bd2574ca69331d33429f8806ce189b2941e490e7.tar.bz2
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 9a11ca0..f7c053a 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");