Skip to content

Commit e2f8cd5

Browse files
chriscoolgitster
authored andcommitted
gpg-interface: use left shift to define GPG_VERIFY_*
In "gpg-interface.h", the definitions of the GPG_VERIFY_* boolean flags are currently using 1, 2 and 4 while we often prefer the bitwise left shift operator, `<<`, for that purpose to make it clearer that they are boolean. Let's use the left shift operator here too. Let's also fix an indent issue with "4" while at it. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent aeb535c commit e2f8cd5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gpg-interface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
struct strbuf;
55

6-
#define GPG_VERIFY_VERBOSE 1
7-
#define GPG_VERIFY_RAW 2
8-
#define GPG_VERIFY_OMIT_STATUS 4
6+
#define GPG_VERIFY_VERBOSE (1<<0)
7+
#define GPG_VERIFY_RAW (1<<1)
8+
#define GPG_VERIFY_OMIT_STATUS (1<<2)
99

1010
enum signature_trust_level {
1111
TRUST_UNDEFINED,

0 commit comments

Comments
 (0)