From: Jeff King Date: Thu, 24 Sep 2015 21:08:24 +0000 (-0400) Subject: notes: document length of fanout path with a constant X-Git-Tag: v2.7.0-rc0~87^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/02e32b7debbcbe5910c11a515801751b349577d7?ds=inline;hp=02e32b7debbcbe5910c11a515801751b349577d7 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 Signed-off-by: Junio C Hamano ---