Fossil SCM
In-editor note re: empty commit msg allowing chance to abort commit. Per suggestion by David Given on fossil-users@ mailing list.
Commit
0484ccf2e9335e2f4c9914afabe7d66c28b0be99
Parent
724a5445919f6f1…
1 file changed
+5
+5
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -806,10 +806,15 @@ | ||
| 806 | 806 | blob_init(&prompt, zInit, -1); |
| 807 | 807 | #endif |
| 808 | 808 | blob_append(&prompt, |
| 809 | 809 | "\n" |
| 810 | 810 | "# Enter commit message for this check-in. Lines beginning with # are ignored.\n" |
| 811 | + "#\n" | |
| 812 | + "# *******\n" | |
| 813 | + "# ** TIP: For opportunity to abort this commit,\n" | |
| 814 | + "# ** submit an empty commit message.\n" | |
| 815 | + "# *******\n" | |
| 811 | 816 | "#\n", -1 |
| 812 | 817 | ); |
| 813 | 818 | blob_appendf(&prompt, "# user: %s\n", p->zUserOvrd ? p->zUserOvrd : login_name()); |
| 814 | 819 | if( p->zBranch && p->zBranch[0] ){ |
| 815 | 820 | blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch); |
| 816 | 821 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -806,10 +806,15 @@ | |
| 806 | blob_init(&prompt, zInit, -1); |
| 807 | #endif |
| 808 | blob_append(&prompt, |
| 809 | "\n" |
| 810 | "# Enter commit message for this check-in. Lines beginning with # are ignored.\n" |
| 811 | "#\n", -1 |
| 812 | ); |
| 813 | blob_appendf(&prompt, "# user: %s\n", p->zUserOvrd ? p->zUserOvrd : login_name()); |
| 814 | if( p->zBranch && p->zBranch[0] ){ |
| 815 | blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch); |
| 816 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -806,10 +806,15 @@ | |
| 806 | blob_init(&prompt, zInit, -1); |
| 807 | #endif |
| 808 | blob_append(&prompt, |
| 809 | "\n" |
| 810 | "# Enter commit message for this check-in. Lines beginning with # are ignored.\n" |
| 811 | "#\n" |
| 812 | "# *******\n" |
| 813 | "# ** TIP: For opportunity to abort this commit,\n" |
| 814 | "# ** submit an empty commit message.\n" |
| 815 | "# *******\n" |
| 816 | "#\n", -1 |
| 817 | ); |
| 818 | blob_appendf(&prompt, "# user: %s\n", p->zUserOvrd ? p->zUserOvrd : login_name()); |
| 819 | if( p->zBranch && p->zBranch[0] ){ |
| 820 | blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch); |
| 821 |