Fossil SCM

Be sure to call vfile_check_signature() so that edits are detected prior to generating diffs on the /ckout page.

drh 2024-12-10 12:38 ckout-page
Commit 6affaac979cd087016deeabae89a176cafd38ed74be9c84a2d213defe7d38f52
1 file changed +1
+1
--- src/info.c
+++ src/info.c
@@ -626,10 +626,11 @@
626626
return;
627627
}
628628
diffType = preferred_diff_type();
629629
pCfg = construct_diff_flags(diffType, &DCfg);
630630
vid = db_lget_int("checkout", 0);
631
+ vfile_check_signature(vid, CKSIG_ENOTFILE);
631632
style_set_current_feature("vinfo");
632633
zHostname = fossil_hostname();
633634
zCwd = file_getcwd(0,0);
634635
if( zHostname ){
635636
style_header("Checkout at %s:%s", zHostname, zCwd);
636637
--- src/info.c
+++ src/info.c
@@ -626,10 +626,11 @@
626 return;
627 }
628 diffType = preferred_diff_type();
629 pCfg = construct_diff_flags(diffType, &DCfg);
630 vid = db_lget_int("checkout", 0);
 
631 style_set_current_feature("vinfo");
632 zHostname = fossil_hostname();
633 zCwd = file_getcwd(0,0);
634 if( zHostname ){
635 style_header("Checkout at %s:%s", zHostname, zCwd);
636
--- src/info.c
+++ src/info.c
@@ -626,10 +626,11 @@
626 return;
627 }
628 diffType = preferred_diff_type();
629 pCfg = construct_diff_flags(diffType, &DCfg);
630 vid = db_lget_int("checkout", 0);
631 vfile_check_signature(vid, CKSIG_ENOTFILE);
632 style_set_current_feature("vinfo");
633 zHostname = fossil_hostname();
634 zCwd = file_getcwd(0,0);
635 if( zHostname ){
636 style_header("Checkout at %s:%s", zHostname, zCwd);
637

Keyboard Shortcuts

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