Fossil SCM
Enable the --editor option for `fossil amend'.
Commit
bb3fbffefaab13a1ab33951a1de611d0b352652f551a21f354f72ba9bc0e5982
Parent
56e59a3c5056547…
1 file changed
+2
+2
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -3932,10 +3932,11 @@ | ||
| 3932 | 3932 | ** --cancel TAG Cancel TAG from this check-in |
| 3933 | 3933 | ** --close Mark this "leaf" as closed |
| 3934 | 3934 | ** --date DATETIME Make DATETIME the check-in time |
| 3935 | 3935 | ** --date-override DATETIME Set the change time on the control artifact |
| 3936 | 3936 | ** -e|--edit-comment Launch editor to revise comment |
| 3937 | +** --editor NAME Text editor to use for check-in comment | |
| 3937 | 3938 | ** --hide Hide branch starting from this check-in |
| 3938 | 3939 | ** -m|--comment COMMENT Make COMMENT the check-in comment |
| 3939 | 3940 | ** -M|--message-file FILE Read the amended comment from FILE |
| 3940 | 3941 | ** -n|--dry-run Print control artifact, but make no changes |
| 3941 | 3942 | ** --no-verify-comment Do not validate the check-in comment |
| @@ -4005,10 +4006,11 @@ | ||
| 4005 | 4006 | if( zChngTime==0 ) zChngTime = find_option("chngtime",0,1); |
| 4006 | 4007 | zUserOvrd = find_option("user-override",0,1); |
| 4007 | 4008 | noVerifyCom = find_option("no-verify-comment",0,0)!=0; |
| 4008 | 4009 | db_find_and_open_repository(0,0); |
| 4009 | 4010 | user_select(); |
| 4011 | + (void)fossil_text_editor(); | |
| 4010 | 4012 | verify_all_options(); |
| 4011 | 4013 | if( g.argc<3 || g.argc>=4 ) usage(AMEND_USAGE_STMT); |
| 4012 | 4014 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 4013 | 4015 | if( rid==0 && !is_a_version(rid) ) fossil_fatal("no such check-in"); |
| 4014 | 4016 | zUuid = db_text(0, "SELECT uuid FROM blob WHERE rid=%d", rid); |
| 4015 | 4017 |
| --- 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 |