On Wed, Jul 03, 2024 at 10:36:25PM +0000, wonda-tea-coffee via GitGitGadget wrote: > From: wonda-tea-coffee <lagrange.resolvent@xxxxxxxxx> > > Contrary to the number listed in the current document, > only 26 are actually shown. The commit message would be a good place to explain how we know "26" is the right number. ;) It looks like this is computed at build-time based on FLAG_BITS: #define REV_SHIFT 2 #define MAX_REVS (FLAG_BITS - REV_SHIFT) /* should not exceed bits_per_int - REV_SHIFT */ That's defined in object.h. Looking at "git log -GFLAG_BITS object.h", it seems it was 27, then 29, and now 28. So I'm not sure how it was ever 29, but 26 makes sense now. It is unfortunate that it _could_ change again without us realizing the documentation is now stale. But I don't think it's something we'd touch very often, so this is probably OK in practice (and as the TODO above those lines says, ultimately this should use a commit-slab to handle an arbitrary number of refs). > Signed-off-by: wonda-tea-coffee <lagrange.resolvent@xxxxxxxxx> We generally want a real name here, since this is certifying that you agree to the DCO. See: https://git-scm.com/docs/SubmittingPatches#sign-off -Peff