]> git.ipfire.org Git - thirdparty/git.git/commit - packfile.c
for_each_*_object: take flag arguments as enum
authorJeff King <peff@peff.net>
Fri, 10 Aug 2018 23:09:44 +0000 (19:09 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 20:48:25 +0000 (13:48 -0700)
commita7ff6f5a0f310406aa4973e8d7ec25815554bcb5
tree6b2a61709b419a609a6be78e84584ad26991e55e
parent202e7f1e161b5bce6587d1a696843ead10a8b477
for_each_*_object: take flag arguments as enum

It's not wrong to pass our flags in an "unsigned", as we
know it will be at least as large as the enum.  However,
using the enum in the declaration makes it more obvious
where to find the list of flags.

While we're here, let's also drop the "extern" noise-words
from the declarations, per our modern coding style.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
packfile.c
packfile.h
sha1-file.c