infio-copilot-dev/example_notes/Text completion test (git sha hash checksums).md
2025-01-05 21:14:35 +08:00

12 lines
426 B
Markdown

# 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