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

Re: [PATCH] completion: complete paths for git send-email

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 22, 2026, 15:32 UTC
Message-ID
<xmqq4ihrt4yt.fsf@gitster.g>
In-Reply-To
<C9564DC6-6B68-46CA-A339-1A1774AFA7C0@gmail.com>
Ben Knoble <ben.knoble@gmail.com> writes:
Show 9 quoted lines
>> As to the tests, using 40-hex is misleading, and 0-branch as you
>> said would be sufficient to reproduce and demonstrate the issue, and
>> that your code change fixes it.
>> 
>> Ben, anything I missed?
>> 
>> Thanks.
>
> Not from my end, though SZEDER’s review merits some thinking.

I agree that presenting both refs and paths cleanly will require a much better structure than a flat list. I also agree that hiding paths when we have ref matches may give us a cleaner layout than mixing them alphabetically into a single, flat list. While I am still not convinced it is the best way, at least that is the principle current completion implementations use for other commands, and it makes sense to model the updated completion for send-email after it.

That said, since I never feed refs to send-email myself, 'if we have matches with refs, do not show paths at all' rule makes send-email completion completely useless, at least to me.

> Traveling the next week+; replies may be slower (than usual, hah).
Have a great trip, and have fun!
Thanks.
Previous: Ben KnobleNext: SZEDER Gábor
Message 8 of 9 in “completion: complete paths for git send-email”
  1. completion: complete paths for git send-emailYury Norov (NVIDIA), Jul 19, 2026
  2. Junio C HamanoJul 19, 2026
  3. D. Ben KnobleJul 21, 2026
  4. Junio C HamanoJul 21, 2026
  5. Yury NorovJul 21, 2026
  6. Junio C HamanoJul 21, 2026
  7. Ben KnobleJul 22, 2026
  8. Junio C HamanoJul 22, 2026
  9. SZEDER GáborJul 21, 2026

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.