Fossil SCM

Fill in more help for fossil user whoami command.

brickviking 2025-08-06 06:29 user-whoami
Commit aef4a2c023d2f1d9119ee1f852879880ec61b42296395ac9d2673da315fccc08
1 file changed +5 -1
+5 -1
--- src/user.c
+++ src/user.c
@@ -351,16 +351,20 @@
351351
** to exist in the database.
352352
**
353353
** > fossil user password USERNAME ?PASSWORD?
354354
**
355355
** Change the web access password for a user.
356
+**
357
+** > fossil user whoami
358
+**
359
+** Detect what fossil thinks your username should be.
356360
*/
357361
void user_cmd(void){
358362
int n;
359363
db_find_and_open_repository(0, 0);
360364
if( g.argc<3 ){
361
- usage("capabilities|contact|default|list|new|password ...");
365
+ usage("capabilities|contact|default|list|new|password|whoami ...");
362366
}
363367
n = strlen(g.argv[2]);
364368
if( n>=2 && strncmp(g.argv[2],"new",n)==0 ){
365369
Blob passwd, login, caps, contact;
366370
char *zPw;
367371
--- src/user.c
+++ src/user.c
@@ -351,16 +351,20 @@
351 ** to exist in the database.
352 **
353 ** > fossil user password USERNAME ?PASSWORD?
354 **
355 ** Change the web access password for a user.
 
 
 
 
356 */
357 void user_cmd(void){
358 int n;
359 db_find_and_open_repository(0, 0);
360 if( g.argc<3 ){
361 usage("capabilities|contact|default|list|new|password ...");
362 }
363 n = strlen(g.argv[2]);
364 if( n>=2 && strncmp(g.argv[2],"new",n)==0 ){
365 Blob passwd, login, caps, contact;
366 char *zPw;
367
--- src/user.c
+++ src/user.c
@@ -351,16 +351,20 @@
351 ** to exist in the database.
352 **
353 ** > fossil user password USERNAME ?PASSWORD?
354 **
355 ** Change the web access password for a user.
356 **
357 ** > fossil user whoami
358 **
359 ** Detect what fossil thinks your username should be.
360 */
361 void user_cmd(void){
362 int n;
363 db_find_and_open_repository(0, 0);
364 if( g.argc<3 ){
365 usage("capabilities|contact|default|list|new|password|whoami ...");
366 }
367 n = strlen(g.argv[2]);
368 if( n>=2 && strncmp(g.argv[2],"new",n)==0 ){
369 Blob passwd, login, caps, contact;
370 char *zPw;
371

Keyboard Shortcuts

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