diff options
author | Jeff King <peff@peff.net> | 2018-08-10 19:09:06 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-13 13:47:50 -0700 |
commit | 202e7f1e161b5bce6587d1a696843ead10a8b477 (patch) | |
tree | 4f21fa4f3dd1608df4b977345f8ce5f82bf4fa95 /commit-graph.c | |
parent | Fifth batch for 2.19 cycle (diff) | |
download | tgif-202e7f1e161b5bce6587d1a696843ead10a8b477.tar.xz |
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>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions