Fossil SCM

In "fossil describe", use hash_digits() as the default length when printing the commit hash.

danield 2022-03-31 08:21 trunk
Commit 951cf9faf3968dfc7a15b29989933b91370d201281410a28ac16a20d18302b31
1 file changed +1 -1
+1 -1
--- src/info.c
+++ src/info.c
@@ -3825,11 +3825,11 @@
38253825
bLongFlag = find_option("long","",0)!=0;
38263826
zMatchGlob = find_option("match", 0, 1);
38273827
zDigits = find_option("digits", 0, 1);
38283828
38293829
if ( !zDigits || ((nDigits=atoi(zDigits))==0) ){
3830
- nDigits = 10;
3830
+ nDigits = hash_digits(0);
38313831
}
38323832
38333833
/* We should be done with options.. */
38343834
verify_all_options();
38353835
if( g.argc<3 ){
38363836
--- src/info.c
+++ src/info.c
@@ -3825,11 +3825,11 @@
3825 bLongFlag = find_option("long","",0)!=0;
3826 zMatchGlob = find_option("match", 0, 1);
3827 zDigits = find_option("digits", 0, 1);
3828
3829 if ( !zDigits || ((nDigits=atoi(zDigits))==0) ){
3830 nDigits = 10;
3831 }
3832
3833 /* We should be done with options.. */
3834 verify_all_options();
3835 if( g.argc<3 ){
3836
--- src/info.c
+++ src/info.c
@@ -3825,11 +3825,11 @@
3825 bLongFlag = find_option("long","",0)!=0;
3826 zMatchGlob = find_option("match", 0, 1);
3827 zDigits = find_option("digits", 0, 1);
3828
3829 if ( !zDigits || ((nDigits=atoi(zDigits))==0) ){
3830 nDigits = hash_digits(0);
3831 }
3832
3833 /* We should be done with options.. */
3834 verify_all_options();
3835 if( g.argc<3 ){
3836

Keyboard Shortcuts

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