Fossil SCM
In "fossil describe", use hash_digits() as the default length when printing the commit hash.
Commit
951cf9faf3968dfc7a15b29989933b91370d201281410a28ac16a20d18302b31
Parent
41dc5fc00061831…
1 file changed
+1
-1
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -3825,11 +3825,11 @@ | ||
| 3825 | 3825 | bLongFlag = find_option("long","",0)!=0; |
| 3826 | 3826 | zMatchGlob = find_option("match", 0, 1); |
| 3827 | 3827 | zDigits = find_option("digits", 0, 1); |
| 3828 | 3828 | |
| 3829 | 3829 | if ( !zDigits || ((nDigits=atoi(zDigits))==0) ){ |
| 3830 | - nDigits = 10; | |
| 3830 | + nDigits = hash_digits(0); | |
| 3831 | 3831 | } |
| 3832 | 3832 | |
| 3833 | 3833 | /* We should be done with options.. */ |
| 3834 | 3834 | verify_all_options(); |
| 3835 | 3835 | if( g.argc<3 ){ |
| 3836 | 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 = 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 |