clientversion: Use full commit hash for commit-based version descriptions #11966

pull luke-jr wants to merge 1 commits into bitcoin:master from luke-jr:ver_full_commit_hash changing 1 files +1 −1
  1. luke-jr commented at 8:55 PM on December 20, 2017: member

    git keeps changing the number of digits in abbreviated hashes, resulting in the GitHub archive hash changing because we include it here. To workaround this and avoid hashes that become increasingly ambiguous later on, just include the full commit hash when building from git. This has no effect on tagged releases.

    (Cleanly mergable back to 0.10 without backport)

  2. clientversion: Use full commit hash for commit-based version descriptions
    git keeps changing the number of digits in abbreviated hashes, resulting in the GitHub archive hash changing because we include it here.
    To workaround this and avoid hashes that become increasingly ambiguous later on, just include the full commit hash when building from git.
    This has no effect on tagged releases.
    a71c56aebb
  3. laanwj commented at 8:40 AM on December 21, 2017: member

    ACK, I strongly prefer full hashes as they will remain unambiguous for all time, https://github.com/bitcoin/bitcoin/pull/11966/commits/a71c56aebbd93b25fcdbc170bd8b451e52a6b4dd

  4. laanwj added the label Build system on Dec 21, 2017
  5. meshcollider commented at 9:53 AM on December 21, 2017: contributor
  6. promag commented at 10:13 AM on December 21, 2017: member

    ACK.

  7. jonasschnelli commented at 7:00 PM on December 21, 2017: contributor

    utACK a71c56aebbd93b25fcdbc170bd8b451e52a6b4dd How does the GUI splash screen looks like with this?

  8. fanquake commented at 6:17 AM on December 22, 2017: member

    utACK a71c56a I don't think this should have any affect on the splash screen, the version string should always be sized to fit.

  9. laanwj commented at 9:30 AM on December 22, 2017: member

    How does the GUI splash screen looks like with this?

    That's a good point. Wasn't able to find any difference. Hrm so this will only make a difference with git-archive?

  10. meshcollider commented at 11:01 AM on December 22, 2017: contributor

    Built and verified the splash screen is unchanged, this change is embedded in a #ifdef GIT_ARCHIVE, so doesn't affect the normal build which uses BUILD_DESC_WITH_SUFFIX - which gets the suffix from share/genbuild.sh, i.e. the short version:

    https://github.com/bitcoin/bitcoin/blob/180a25596a29a553164266b882290fde6185cc0d/share/genbuild.sh#L37

  11. laanwj commented at 12:47 PM on December 22, 2017: member

    Did you build from an archive to verify that?

  12. laanwj commented at 9:58 AM on February 13, 2018: member

    utACK a71c56a

  13. laanwj merged this on Feb 13, 2018
  14. laanwj closed this on Feb 13, 2018

  15. laanwj referenced this in commit f4f4f51f1a on Feb 13, 2018
  16. PastaPastaPasta referenced this in commit b5c7f771ca on Jun 10, 2020
  17. PastaPastaPasta referenced this in commit a033713849 on Jun 11, 2020
  18. PastaPastaPasta referenced this in commit 7d59bf8080 on Jun 11, 2020
  19. PastaPastaPasta referenced this in commit b889c55bc3 on Jun 11, 2020
  20. PastaPastaPasta referenced this in commit 4eb6459cea on Jun 12, 2020
  21. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me