在 git 中的应⽤用
diff_populate_filespec
While doing rename detection and pickaxe operation, we
may need to grab the data for the blob (or file) for our own
in-core comparison.
Slide 16
Slide 16 text
在 git 中的应⽤用
do_read_index
Slide 17
Slide 17 text
在 git 中的应⽤用
check_packed_git_idx
Open and mmap the index file at path, perform a
couple of consistency checks
Slide 18
Slide 18 text
在 git 中的应⽤用
do_read_index
Slide 19
Slide 19 text
在 git 中的应⽤用
⽤用于⼩小⼯工具读⽂文件
Slide 20
Slide 20 text
在 git 中的应⽤用
⽤用于 pack-bitmap
Slide 21
Slide 21 text
在 git 中的应⽤用
ewah bitmap compression
Slide 22
Slide 22 text
mmap 在 libgit2 中应⽤用⼗十分有限
仅⽤用于 pack 和 index
Slide 23
Slide 23 text
在 libgit2 中的应⽤用
new_window
Slide 24
Slide 24 text
在 libgit2 中的应⽤用
(indexer) parse_header
Slide 25
Slide 25 text
在 libgit2 中的应⽤用
(indexer) write_at
Slide 26
Slide 26 text
在 libgit2 中的应⽤用
pack_index_check
When doing Packed Object lookup query,
Mmap the index file and do a quick run through
the header to guess the index version, and to
verify that the size of the index makes sense.