What is git actually doing when it says it is “resolving deltas”?

后端 未结 3 1566
一向
一向 2020-11-30 18:09

During the first clone of a repository, git first receives the objects (which is obvious enough), and then spends about the same amount of time \"resolving deltas\". What\'

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 18:46

    Git uses delta encoding to store some of the objects in packfiles. However, you don't want to have to play back every single change ever on a given file in order to get the current version, so Git also has occasional snapshots of the file contents stored as well. "Resolving deltas" is the step that deals with making sure all of that stays consistent.

    Here's a chapter from the "Git Internals" section of the Pro Git book, which is available online, that talks about this.

提交回复
热议问题