Fossil SCM

Enable the --editor option for `fossil amend'.

florian 2025-05-09 06:15 trunk
Commit bb3fbffefaab13a1ab33951a1de611d0b352652f551a21f354f72ba9bc0e5982
1 file changed +2
+2
--- src/info.c
+++ src/info.c
@@ -3932,10 +3932,11 @@
39323932
** --cancel TAG Cancel TAG from this check-in
39333933
** --close Mark this "leaf" as closed
39343934
** --date DATETIME Make DATETIME the check-in time
39353935
** --date-override DATETIME Set the change time on the control artifact
39363936
** -e|--edit-comment Launch editor to revise comment
3937
+** --editor NAME Text editor to use for check-in comment
39373938
** --hide Hide branch starting from this check-in
39383939
** -m|--comment COMMENT Make COMMENT the check-in comment
39393940
** -M|--message-file FILE Read the amended comment from FILE
39403941
** -n|--dry-run Print control artifact, but make no changes
39413942
** --no-verify-comment Do not validate the check-in comment
@@ -4005,10 +4006,11 @@
40054006
if( zChngTime==0 ) zChngTime = find_option("chngtime",0,1);
40064007
zUserOvrd = find_option("user-override",0,1);
40074008
noVerifyCom = find_option("no-verify-comment",0,0)!=0;
40084009
db_find_and_open_repository(0,0);
40094010
user_select();
4011
+ (void)fossil_text_editor();
40104012
verify_all_options();
40114013
if( g.argc<3 || g.argc>=4 ) usage(AMEND_USAGE_STMT);
40124014
rid = name_to_typed_rid(g.argv[2], "ci");
40134015
if( rid==0 && !is_a_version(rid) ) fossil_fatal("no such check-in");
40144016
zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
40154017
--- src/info.c
+++ src/info.c
@@ -3932,10 +3932,11 @@
3932 ** --cancel TAG Cancel TAG from this check-in
3933 ** --close Mark this "leaf" as closed
3934 ** --date DATETIME Make DATETIME the check-in time
3935 ** --date-override DATETIME Set the change time on the control artifact
3936 ** -e|--edit-comment Launch editor to revise comment
 
3937 ** --hide Hide branch starting from this check-in
3938 ** -m|--comment COMMENT Make COMMENT the check-in comment
3939 ** -M|--message-file FILE Read the amended comment from FILE
3940 ** -n|--dry-run Print control artifact, but make no changes
3941 ** --no-verify-comment Do not validate the check-in comment
@@ -4005,10 +4006,11 @@
4005 if( zChngTime==0 ) zChngTime = find_option("chngtime",0,1);
4006 zUserOvrd = find_option("user-override",0,1);
4007 noVerifyCom = find_option("no-verify-comment",0,0)!=0;
4008 db_find_and_open_repository(0,0);
4009 user_select();
 
4010 verify_all_options();
4011 if( g.argc<3 || g.argc>=4 ) usage(AMEND_USAGE_STMT);
4012 rid = name_to_typed_rid(g.argv[2], "ci");
4013 if( rid==0 && !is_a_version(rid) ) fossil_fatal("no such check-in");
4014 zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
4015
--- src/info.c
+++ src/info.c
@@ -3932,10 +3932,11 @@
3932 ** --cancel TAG Cancel TAG from this check-in
3933 ** --close Mark this "leaf" as closed
3934 ** --date DATETIME Make DATETIME the check-in time
3935 ** --date-override DATETIME Set the change time on the control artifact
3936 ** -e|--edit-comment Launch editor to revise comment
3937 ** --editor NAME Text editor to use for check-in comment
3938 ** --hide Hide branch starting from this check-in
3939 ** -m|--comment COMMENT Make COMMENT the check-in comment
3940 ** -M|--message-file FILE Read the amended comment from FILE
3941 ** -n|--dry-run Print control artifact, but make no changes
3942 ** --no-verify-comment Do not validate the check-in comment
@@ -4005,10 +4006,11 @@
4006 if( zChngTime==0 ) zChngTime = find_option("chngtime",0,1);
4007 zUserOvrd = find_option("user-override",0,1);
4008 noVerifyCom = find_option("no-verify-comment",0,0)!=0;
4009 db_find_and_open_repository(0,0);
4010 user_select();
4011 (void)fossil_text_editor();
4012 verify_all_options();
4013 if( g.argc<3 || g.argc>=4 ) usage(AMEND_USAGE_STMT);
4014 rid = name_to_typed_rid(g.argv[2], "ci");
4015 if( rid==0 && !is_a_version(rid) ) fossil_fatal("no such check-in");
4016 zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid);
4017

Keyboard Shortcuts

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