progit / progit2

Pro Git 2nd Edition
Other
5.69k stars 1.88k forks source link

ch10-maintenance: make pack .idx look like a SHA-1 hash #1912

Open vadcx opened 7 months ago

vadcx commented 7 months ago

Changes

-$ git verify-pack -v .git/objects/pack/pack-29…69.idx \
+$ git verify-pack -v .git/objects/pack/pack-e7f…069.idx \

Context

At first I stumbled upon the ellipsis ... here because it seemed like a git/Shell macro to expand paths for packs numbered 29-69. But it's not a short-hand for anything, what was meant here is simply the full SHA-1 hash as part of the file name. So I changed it to look like an actual hex number.

Sufficient attention was paid to keep the second number as it appeared in the book ;)