infio-copilot/demo_vault/Text completion test (git sha hash checksums).md
duanfuxiang 0c7ee142cb init
2025-01-05 11:51:39 +08:00

426 B

Git sha hash checksums

Every snapshot in git is check summed before it is stored using an SHA-1. This produces a 40-char string with hexadecimal chars (0-9 & a-f).

This hash is based on the following information:

  • The source tree of the commit (content of all the files in the repo and their locations).
  • The parent commit sha1
  • The author info
  • The committer info (right, those are different!)
  • The commit message