for_each_*_object: store flag definitions in a single location
authorJeff King <peff@peff.net>
Fri, 10 Aug 2018 23:09:06 +0000 (19:09 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 20:47:50 +0000 (13:47 -0700)
These flags were split between cache.h and packfile.h,
because some of the flags apply only to packs. However, they
share a single numeric namespace, since both are respected
for the packed variant. Let's make sure they're defined
together so that nobody accidentally adds a new flag in one
location that duplicates the other.

While we're here, let's also put them in an enum (which
helps debugger visibility) and use "(1<<n)" rather than
counting powers of 2 manually.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found