From: Christian Couder Date: Thu, 30 Oct 2025 12:33:29 +0000 (+0100) Subject: gpg-interface: use left shift to define GPG_VERIFY_* X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d7cc86b3b099dfae26ea61ee88d7ca0d24f9f08;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/gpg-interface.h b/gpg-interface.h index 50487aa148..ead1ed6967 100644 --- a/gpg-interface.h +++ b/gpg-interface.h @@ -3,9 +3,9 @@ struct strbuf; -#define GPG_VERIFY_VERBOSE 1 -#define GPG_VERIFY_RAW 2 -#define GPG_VERIFY_OMIT_STATUS 4 +#define GPG_VERIFY_VERBOSE (1<<0) +#define GPG_VERIFY_RAW (1<<1) +#define GPG_VERIFY_OMIT_STATUS (1<<2) enum signature_trust_level { TRUST_UNDEFINED,