summaryrefslogtreecommitdiff
path: root/builtin/fsck.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-09-24 21:08:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-10-05 18:08:05 (GMT)
commit02e32b7debbcbe5910c11a515801751b349577d7 (patch)
tree8f6d9a6af06d69cef330d5e92780dcbcd277d164 /builtin/fsck.c
parent7ce4fb948c6d196a376a37840cb80ae95b5897ec (diff)
downloadgit-02e32b7debbcbe5910c11a515801751b349577d7.zip
git-02e32b7debbcbe5910c11a515801751b349577d7.tar.gz
git-02e32b7debbcbe5910c11a515801751b349577d7.tar.bz2
notes: document length of fanout path with a constant
We know that a fanned-out sha1 in a notes tree cannot be more than "aa/bb/cc/...", and we have an assert() to confirm that. But let's factor out that length into a constant so we can be sure it is used consistently. And even though we assert() earlier, let's replace a strcpy with xsnprintf, so it is clear to a reader that all cases are covered. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsck.c')
0 files changed, 0 insertions, 0 deletions