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

Re: [PATCH v3 0/3] Introduce log.showSignature config variable

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 22, 2016, 20:31 UTC
Message-ID
<xmqqr3bpklsd.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160622165126.12786-1-mehul.jain2029@gmail.com>
Mehul Jain <mehul.jain2029@gmail.com> writes:
Show 7 quoted lines
> Add a new configuratation variable "log.showSignature" for git-log
> and related commands. "log.showSignature=true" will enable user to
> see GPG signature by default for git-log and related commands.
>
> Changes compared to v2:
> 	* A preparatory patch 1/3 has been introduced so that tests
> 	  in patches 2/3 and 3/3 can take advantage of it.

It is unclear how this change allows the remainder to "take advanrage" to me. Earlier, "signed" branch was created only when the GPG prerequisite is met and with this change the branch is always created, which is the only change as far as I can see. But the tests that are added in 2 and 3 are all protected with the GPG prerequiste.

Besides, the invocation of "git commit -S" after this change is no longer protected by the GPG prerequisite and it may even cause the 'setup' step to fail on a host without GPG.

What am I missing? I do not quite see any reason to take 1/2; I only see a possible downside without any upside.

The main two steps 2&3 looked good.
Thanks.
Show 7 quoted lines
> 	* Mistake regarding branch in [patch v2 2/2] has been
> 	  corrected.
> 	* Tight coupling between the tests in [patch v2 2/2] has
> 	  been resovled.
>
> I would like to thanks Eric Sunshine for his feedback on previous
> series [1].
Show 14 quoted lines
>
> [1]: http://thread.gmane.org/gmane.comp.version-control.git/297648 
>
> Mehul Jain (3):
>   t4202: refactoring of test
>   log: add "--no-show-signature" command line option
>   log: add log.showSignature configuration variable
>
>  Documentation/git-log.txt |  4 ++++
>  builtin/log.c             |  6 ++++++
>  revision.c                |  2 ++
>  t/t4202-log.sh            | 32 ++++++++++++++++++++++++++++++--
>  t/t7510-signed-commit.sh  |  7 +++++++
>  5 files changed, 49 insertions(+), 2 deletions(-)
Previous: Mehul JainNext: Mehul Jain
Message 6 of 10 in “Introduce log.showSignature config variable”
  1. 0/3 Introduce log.showSignature config variableMehul Jain, Jun 22, 2016
  2. 1/3 t4202: refactor testMehul Jain, Jun 22, 2016
  3. 1/3 t4202: refactor testMehul Jain, Jun 24, 2016
  4. 2/3 log: add "--no-show-signature" command line optionMehul Jain, Jun 22, 2016
  5. 3/3 log: add log.showSignature configuration variableMehul Jain, Jun 22, 2016
  6. Junio C HamanoJun 22, 2016
  7. Mehul JainJun 23, 2016
  8. Junio C HamanoJun 23, 2016
  9. Mehul JainJun 24, 2016
  10. Eric SunshineJun 24, 2016

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.