git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 3/5] commit: refactor signature verification helpers

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 6, 2020, 19:36 UTC
Message-ID
<xmqqtv588ji7.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20200105135616.19102-4-hji@dyntopia.com>
Hans Jerry Illikainen <hji@dyntopia.com> writes:
Show 10 quoted lines
> +static unsigned gpg_flags = GPG_VERIFY_SHORT | GPG_VERIFY_COMPAT;
>  static struct strbuf merge_msg = STRBUF_INIT;
>  static struct strategy **use_strategies;
>  static size_t use_strategies_nr, use_strategies_alloc;
> @@ -633,7 +633,7 @@ static int git_merge_config(const char *k, const char *v, void *cb)
>  		sign_commit = git_config_bool(k, v) ? "" : NULL;
>  		return 0;
>  	} else if (!strcmp(k, "gpg.mintrustlevel")) {
> -		check_trust_level = 0;
> +		gpg_flags ^= GPG_VERIFY_COMPAT;

Did you really mean to "toggle the bit each time the variable appears"? Or is this better written as

		gpg_flags &= ~GPG_VERIFY_COMPAT;
instead?  There may be another instance of the same in this patch.
Previous: Hans Jerry IllikainenNext: Hans Jerry Illikainen
Message 9 of 13 in “refactor gpg-interface and add gpg verification for clones”
  1. 0/5 refactor gpg-interface and add gpg verification for clonesHans Jerry Illikainen, Jan 5, 2020
  2. 1/5 gpg-interface: conditionally show the result in print_signature_buffer()Hans Jerry Illikainen, Jan 5, 2020
  3. Junio C HamanoJan 6, 2020
  4. 4/5 merge: verify signatures if gpg.verifySignatures is trueHans Jerry Illikainen, Jan 5, 2020
  5. Junio C HamanoJan 6, 2020
  6. 2/5 gpg-interface: support one-line summaries in print_signature_buffer()Hans Jerry Illikainen, Jan 5, 2020
  7. Junio C HamanoJan 6, 2020
  8. 3/5 commit: refactor signature verification helpersHans Jerry Illikainen, Jan 5, 2020
  9. Junio C HamanoJan 6, 2020
  10. 5/5 clone: support signature verificationHans Jerry Illikainen, Jan 5, 2020
  11. Junio C HamanoJan 5, 2020
  12. Hans Jerry IllikainenJan 7, 2020
  13. Junio C HamanoJan 7, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.