Fossil

Check-in [951cf9faf3]
Login

Check-in [951cf9faf3]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:In "fossil describe", use hash_digits() as the default length when printing the commit hash.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 951cf9faf3968dfc7a15b29989933b91370d201281410a28ac16a20d18302b31
User & Date: danield 2022-03-31 08:21:31.422
Context
2022-03-31
09:14
Improvements to the help text and code comments for the "describe" command. ... (check-in: 52dd8a91bf user: danield tags: trunk)
08:21
In "fossil describe", use hash_digits() as the default length when printing the commit hash. ... (check-in: 951cf9faf3 user: danield tags: trunk)
2022-03-30
21:11
Fix the describe_commit() routine so that it is faster and simpler and so that it ignores tags that are applied to more than one check-in. ... (check-in: 41dc5fc000 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/info.c.
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
  db_find_and_open_repository(0,0);
  bDirtyFlag = find_option("dirty","d",0)!=0;
  bLongFlag = find_option("long","",0)!=0;
  zMatchGlob = find_option("match", 0, 1);
  zDigits = find_option("digits", 0, 1);

  if ( !zDigits || ((nDigits=atoi(zDigits))==0) ){
    nDigits = 10;
  }

  /* We should be done with options.. */
  verify_all_options();
  if( g.argc<3 ){
    zName = "current";
  }else{







|







3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
  db_find_and_open_repository(0,0);
  bDirtyFlag = find_option("dirty","d",0)!=0;
  bLongFlag = find_option("long","",0)!=0;
  zMatchGlob = find_option("match", 0, 1);
  zDigits = find_option("digits", 0, 1);

  if ( !zDigits || ((nDigits=atoi(zDigits))==0) ){
    nDigits = hash_digits(0);
  }

  /* We should be done with options.. */
  verify_all_options();
  if( g.argc<3 ){
    zName = "current";
  }else{