Fossil SCM

Show the name of the user that is doing the commit in the prompt section commit comment template.

drh 2011-03-10 17:42 trunk
Commit cdc4249268b71144378330ba42ea503791d5b4ee
1 file changed +1
--- src/checkin.c
+++ src/checkin.c
@@ -402,10 +402,11 @@
402402
"\n"
403403
"# Enter comments on this check-in. Lines beginning with # are ignored.\n"
404404
"# The check-in comment follows wiki formatting rules.\n"
405405
"#\n", -1
406406
);
407
+ blob_appendf(&text, "# user: %s\n", g.zLogin);
407408
if( zBranch && zBranch[0] ){
408409
blob_appendf(&text, "# tags: %s\n#\n", zBranch);
409410
}else{
410411
char *zTags = info_tags_of_checkin(parent_rid, 1);
411412
if( zTags ) blob_appendf(&text, "# tags: %z\n#\n", zTags);
412413
--- src/checkin.c
+++ src/checkin.c
@@ -402,10 +402,11 @@
402 "\n"
403 "# Enter comments on this check-in. Lines beginning with # are ignored.\n"
404 "# The check-in comment follows wiki formatting rules.\n"
405 "#\n", -1
406 );
 
407 if( zBranch && zBranch[0] ){
408 blob_appendf(&text, "# tags: %s\n#\n", zBranch);
409 }else{
410 char *zTags = info_tags_of_checkin(parent_rid, 1);
411 if( zTags ) blob_appendf(&text, "# tags: %z\n#\n", zTags);
412
--- src/checkin.c
+++ src/checkin.c
@@ -402,10 +402,11 @@
402 "\n"
403 "# Enter comments on this check-in. Lines beginning with # are ignored.\n"
404 "# The check-in comment follows wiki formatting rules.\n"
405 "#\n", -1
406 );
407 blob_appendf(&text, "# user: %s\n", g.zLogin);
408 if( zBranch && zBranch[0] ){
409 blob_appendf(&text, "# tags: %s\n#\n", zBranch);
410 }else{
411 char *zTags = info_tags_of_checkin(parent_rid, 1);
412 if( zTags ) blob_appendf(&text, "# tags: %z\n#\n", zTags);
413

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button