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

Re: [RFC/PATCH 2/2] log: add "--no-show-signature" command line option

From
Mehul Jain <mehul.jain2029@gmail.com>
Date
May 26, 2016, 16:42 UTC
Message-ID
<CA+DCAeRRunqgbbbpDDK6gA-cXYrPtkmAuX-ERvtDtXsD2Z=xkw@mail.gmail.com>
In-Reply-To
<20160526163241.GC18210@sigill.intra.peff.net>
Hi,
Thanks for your input.
On Thu, May 26, 2016 at 10:02 PM, Jeff King <peff@peff.net> wrote:
Show 21 quoted lines
> On Thu, May 26, 2016 at 06:36:47PM +0530, Mehul Jain wrote:
>> diff --git a/t/t4202-log.sh b/t/t4202-log.sh
>> index 36be9a1..ea24259 100755
>> --- a/t/t4202-log.sh
>> +++ b/t/t4202-log.sh
>> @@ -901,6 +901,13 @@ test_expect_success GPG 'log.showsignature=true behaves like --show-signature' '
>>       test_i18ngrep "gpg: Good signature" actual
>>  '
>>
>> +test_expect_success GPG '--no-show-signature overrides log.showsignature=true' '
>> +     git config log.showsignature true &&
>> +     git log -1 --no-show-signature signed >actual &&
>> +     test "$(test_i18ngrep "gpg: Signature made" actual)" = "" &&
>> +     test "$(test_i18ngrep "gpg: Good signature" actual)" = ""
>> +'
>
> Perhaps it would be more robust to simply grep for "gpg:". We should not
> be seeing any gpg-related lines in the output. It probably isn't that
> big a deal in practice, though. If the output from gpg changes, this
> test could report a false success, but all of the other nearby tests
> would show a breakage, so somebody would probably notice.
That's a very good point. I will make the changes accordingly.

Thanks, Mehul

Previous: Jeff KingNext: Jeff King
Message 12 of 18 in “Introduce "log.showSignature" config variable”
  1. 0/2 Introduce "log.showSignature" config variableMehul Jain, May 26, 2016
  2. 1/2 log: add "log.showsignature" configuration variableMehul Jain, May 26, 2016
  3. Remi Galan AlfonsoMay 26, 2016
  4. Mehul JainMay 26, 2016
  5. Remi Galan AlfonsoMay 26, 2016
  6. Mehul JainMay 26, 2016
  7. Pranit BauvaMay 27, 2016
  8. Jeff KingMay 26, 2016
  9. Mehul JainMay 27, 2016
  10. 2/2 log: add "--no-show-signature" command line optionMehul Jain, May 26, 2016
  11. Jeff KingMay 26, 2016
  12. Mehul JainMay 26, 2016
  13. Jeff KingMay 26, 2016
  14. Junio C HamanoMay 26, 2016
  15. Mehul JainMay 27, 2016
  16. Junio C HamanoMay 27, 2016
  17. Jeff KingMay 27, 2016
  18. Austin EnglishMay 27, 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.