Fossil SCM
Show the name of the user that is doing the commit in the prompt section commit comment template.
Commit
cdc4249268b71144378330ba42ea503791d5b4ee
Parent
c7f07fe67d6e819…
1 file changed
+1
+1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -402,10 +402,11 @@ | ||
| 402 | 402 | "\n" |
| 403 | 403 | "# Enter comments on this check-in. Lines beginning with # are ignored.\n" |
| 404 | 404 | "# The check-in comment follows wiki formatting rules.\n" |
| 405 | 405 | "#\n", -1 |
| 406 | 406 | ); |
| 407 | + blob_appendf(&text, "# user: %s\n", g.zLogin); | |
| 407 | 408 | if( zBranch && zBranch[0] ){ |
| 408 | 409 | blob_appendf(&text, "# tags: %s\n#\n", zBranch); |
| 409 | 410 | }else{ |
| 410 | 411 | char *zTags = info_tags_of_checkin(parent_rid, 1); |
| 411 | 412 | if( zTags ) blob_appendf(&text, "# tags: %z\n#\n", zTags); |
| 412 | 413 |
| --- 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 |