]> git.ipfire.org Git - thirdparty/git.git/commit
parse-options: convert bitfield values to use binary shift
authorAndrzej Hunt <ajrhunt@google.com>
Sun, 21 Mar 2021 16:58:35 +0000 (16:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Mar 2021 21:39:10 +0000 (14:39 -0700)
commit0171dbcb428739e59440ccdf2d9470d8782f51be
tree290d7955a6370d2c65aaeec79cf2fac75b969464
parent04fe4d75faa237813960f8dcd45a91bd445de235
parse-options: convert bitfield values to use binary shift

Because it's easier to read, but also likely to be easier to maintain.
I am making this change because I need to add a new flag in a later
commit.

Also add a trailing comma to the last enum entry to simplify addition of
new flags.

This change was originally suggested by Peff in:
https://public-inbox.org/git/YEZ%2FBWWbpfVwl6nO@coredump.intra.peff.net/

Signed-off-by: Andrzej Hunt <ajrhunt@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.h