for_each_*_object: store flag definitions in a single location
commit202e7f1e161b5bce6587d1a696843ead10a8b477
authorJeff King <peff@peff.net>
Fri, 10 Aug 2018 23:09:06 +0000 (10 19:09 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 20:47:50 +0000 (13 13:47 -0700)
tree4f21fa4f3dd1608df4b977345f8ce5f82bf4fa95
parent1d89318c48d233d52f1db230cf622935ac3c69fa
for_each_*_object: store flag definitions in a single location

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>
cache.h
packfile.h