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

Re: [ANNOUNCE] Git v2.22.0-rc1

From
Duy Nguyen <pclouds@gmail.com>
Date
May 21, 2019, 10:22 UTC
Message-ID
<CACsJy8AU7=N_npgTuLES3r8VBMw+6kS+7D-B5MY0eghdD8O=AQ@mail.gmail.com>
In-Reply-To
<CACsJy8AdhQH25NeDKKdSBctXcU=oyGcJ05XaNryj22GUQH5Btw@mail.gmail.com>
(dropping lkml and git-packagers)
On Tue, May 21, 2019 at 3:31 PM Duy Nguyen <pclouds@gmail.com> wrote:
Show 7 quoted lines
> > The bug there is that the old opt_arg() code would be torelant to empty
> > values. I noticed a similar change the other day with the --abbrev
> > option, but didn't think it was worth noting. Maybe it's a more general
> > problem, in both cases we had a blindspot in our tests.
>
> Hmm.. this one is different (at least it does not use opt_arg()). But
> I'll double check.

What is wrong with --abbrev? The code is simple enough for me to just compare line by line, and the only difference I can see is that if you pass --abbrev=12a, then the old code accepts "12" while the new one rejects.

Granted, I said "no behavior change", but this may be pushing the limits a bit. But maybe you're seeing something else?

Note that "git diff --abbrev" still uses the old, but different, parser in revision.c. parse_options() is only used for --abbrev with --no-index.

-- 
Duy
Previous: Duy NguyenNext: Ævar Arnfjörð Bjarmason
Message 6 of 12 in “[ANNOUNCE] Git v2.22.0-rc1”
  1. Junio C HamanoMay 19, 2019
  2. Johannes SchindelinMay 19, 2019
  3. Bryan TurnerMay 20, 2019
  4. Ævar Arnfjörð BjarmasonMay 20, 2019
  5. Duy NguyenMay 21, 2019
  6. Duy NguyenMay 21, 2019
  7. Ævar Arnfjörð BjarmasonMay 21, 2019
  8. Duy NguyenMay 21, 2019
  9. New diff test failures on s390x architecture (was: [ANNOUNCE] Git v2.22.0-rc1)Todd Zullinger, May 23, 2019
  10. Todd ZullingerMay 23, 2019
  11. Duy NguyenMay 23, 2019
  12. Todd ZullingerMay 23, 2019

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.