What does git SHA depend on?

I was wondering what parameters git SHA depends on. I assume that in addition to the contents of the commit, there will be some other parameters, such as timestamp, etc., on which the SHA construction depends.

I am interested in all such parameters on which it depends. I am also interested in a situation where all such parameters will be the same or forced to be the same, which will lead to the exact same git SHA of any two commits made by two people.

+5
source share
2 answers

For fixing, the identifier depends on checksums at least ......

  • The identifier of the tree (all files and directories), which consists of ...
    • The contents of all files, not diff, are called blobs.
    • ( ).
    • .
  • .
  • .
  • , .
  • .

- , .

. , , , - . ? , , , . Git. " foo ABC123, ? , !"


Git , "" , Subversion CVS, , , . Git , .

SHA1 . , .

SHA1 , , , .

6,5 , , Linux (3,6 Git) Git, 2 , , 50% SHA-1. , .

, , , , 1 100 . ?

+5

, Git. blob , (, ), .

Git Community Book.

-, .

: , , () blob ; , -. , blob ( , ).

+1

Source: https://habr.com/ru/post/1609538/


All Articles