Overview
SHA1 Hash: | 6f0a9f730bfdd476f89d52bbe15ead50baebf385 |
---|---|
Date: | 2008-11-26 03:26:56 |
User: | drh |
Comment: | Mention that check-in comments follow wiki formatting rules. If the check-in comment is blank, prompt the user to abort the check-in. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/checkin.c from [0b6152b93c] to [a3f1065edb].
@@ -255,11 +255,13 @@ char *zFile; Blob text, line; char *zComment; int i; blob_set(&text, - "\n# Enter comments on this commit. Lines beginning with # are ignored\n" + "\n" + "# Enter comments on this check-in. Lines beginning with # are ignored.\n" + "# The check-in comment follows wiki formatting rules.\n" "#\n" ); status_report(&text, "# "); zEditor = db_get("editor", 0); if( zEditor==0 ){ @@ -450,10 +452,19 @@ if( zComment ){ blob_zero(&comment); blob_append(&comment, zComment, -1); }else{ prepare_commit_comment(&comment); + if( blob_size(&comment)==0 ){ + Blob ans; + blob_zero(&ans); + prompt_user("empty check-in comment. continue [y/N]? ", &ans); + if( blob_str(&ans)[0]!='y' ){ + db_end_transaction(1); + exit(1); + } + } } /* Step 1: Insert records for all modified files into the blob ** table. If there were arguments passed to this command, only ** the identified fils are inserted (if they have been modified).