Fossil

Check-in [0484ccf2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:In-editor note re: empty commit msg allowing chance to abort commit.

Per suggestion by David Given on fossil-users@ mailing list.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0484ccf2e9335e2f4c9914afabe7d66c28b0be99
User & Date: bch 2014-04-14 22:50:03
Context
2014-04-15
09:40
Cherry-pick 1277932b7e: Fix a harmless compiler warning that crops up with SQLITE_MAX_MMAP_SIZE=0. check-in: 53aea235 user: jan.nijtmans tags: trunk
2014-04-14
22:50
In-editor note re: empty commit msg allowing chance to abort commit.

Per suggestion by David Given on fossil-users@ mailing list. check-in: 0484ccf2 user: bch tags: trunk

20:30
explain how empty commit msg affects commit process check-in: 724a5445 user: bch tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkin.c.

804
805
806
807
808
809
810





811
812
813
814
815
816
817
  }
#else
  blob_init(&prompt, zInit, -1);
#endif
  blob_append(&prompt,
    "\n"
    "# Enter commit message for this check-in. Lines beginning with # are ignored.\n"





    "#\n", -1
  );
  blob_appendf(&prompt, "# user: %s\n", p->zUserOvrd ? p->zUserOvrd : login_name());
  if( p->zBranch && p->zBranch[0] ){
    blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch);
  }else{
    char *zTags = info_tags_of_checkin(parent_rid, 1);







>
>
>
>
>







804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
  }
#else
  blob_init(&prompt, zInit, -1);
#endif
  blob_append(&prompt,
    "\n"
    "# Enter commit message for this check-in. Lines beginning with # are ignored.\n"
    "#\n"
    "# *******\n"
    "# ** TIP: For opportunity to abort this commit,\n"
    "# **            submit an empty commit message.\n"
    "# *******\n"
    "#\n", -1
  );
  blob_appendf(&prompt, "# user: %s\n", p->zUserOvrd ? p->zUserOvrd : login_name());
  if( p->zBranch && p->zBranch[0] ){
    blob_appendf(&prompt, "# tags: %s\n#\n", p->zBranch);
  }else{
    char *zTags = info_tags_of_checkin(parent_rid, 1);