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

Re: What's cooking in git.git (Mar 2021, #03; Wed, 10)

From
René Scharfe. <l.s.r@web.de>
Date
Mar 11, 2021, 19:13 UTC
Message-ID
<bb5f06df-226f-8c2d-93e1-7e55aab73917@web.de>
In-Reply-To
<87r1klhq3y.fsf@evledraar.gmail.com>
Am 11.03.21 um 12:44 schrieb Ævar Arnfjörð Bjarmason:
Show 12 quoted lines
>
> On Thu, Mar 11 2021, Junio C Hamano wrote:
>
>> * rs/pretty-describe (2021-03-01) 4 commits
>>   (merged to 'next' on 2021-03-01 at bee9248828)
>>  + pretty: document multiple %(describe) being inconsistent
>>  + t4205: assert %(describe) test coverage
>>   (merged to 'next' on 2021-02-25 at 2347ed8fe6)
>>  + pretty: add merge and exclude options to %(describe)
>>  + pretty: add %(describe)
>>
>>  "git log --format='...'" learned "%(describe)" placeholder.

This is missing the patch to limit %(describe) expansing to one per archive [1]. I think we need it to avoid hosters that generate archives for user-supplied repos becoming vulnerable to a DoS attack via this new feature. Demo script in [2].

> As an aside did anyone look into making most of ./builtin/describe.c a
> new ./describe.c library? I had a quick aborted attempt at doing that,
> but it didn't seem like it would be all that hard...

That's what I thought as well, but combined with log --format it produced bogus results for some commits. No idea what went wrong there.

René

[1] http://public-inbox.org/git/b7e1f6c0-6b13-efe4-74b5-ec8249855644@web.de/ [2] http://public-inbox.org/git/a28592c5-4a70-1ea8-fd73-959e28b4278d@web.de/

Previous: Junio C Hamano
Message 14 of 14 in “What's cooking in git.git (Mar 2021, #03; Wed, 10)”
  1. Junio C HamanoMar 11, 2021
  2. Elijah NewrenMar 11, 2021
  3. Junio C HamanoMar 11, 2021
  4. ZheNing HuMar 11, 2021
  5. Junio C HamanoMar 11, 2021
  6. ZheNing HuMar 11, 2021
  7. Ævar Arnfjörð BjarmasonMar 11, 2021
  8. Han-Wen NienhuysMar 11, 2021
  9. Junio C HamanoMar 11, 2021
  10. Elijah NewrenMar 11, 2021
  11. Junio C HamanoMar 11, 2021
  12. Jeff KingMar 11, 2021
  13. Junio C HamanoMar 12, 2021
  14. René Scharfe.Mar 11, 2021

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.