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

Re: bash completion lacks options

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 7, 2015, 15:34 UTC
Message-ID
<CACBZZX4aZo_hn07Pho2GtBVNWm7WHLbV6xSi_r-BjW97QWNqEg@mail.gmail.com>
In-Reply-To
<20150907150757.GA6720@aepfle.de>
On Mon, Sep 7, 2015 at 5:07 PM, Olaf Hering <olaf@aepfle.de> wrote:
> "git send-email --f<tab>" lacks --find-renames and others. Is the list
> of possible options maintained manually?
Yes, see contrib/completion/git-completion.bash.
There's no code for send-email there, you (or someone) could submit a patch! :)
Show 5 quoted lines
> Perhaps this should be
> automated by placing the long strings in an ELF section, then filling
> variables like $__git_format_patch_options from such ELF section.
> An example how this was done in libguestfs is here (see daemon/daemon.h):
> https://github.com/libguestfs/libguestfs/commit/0306c98d319d189281af3c15101c8d343e400f13

This is an interesting approach, but wouldn't help with git-send-email in particular, it's a Perl script, so there's no ELF section to parse.

Previous: Olaf HeringNext: Olaf Hering
Message 2 of 6 in “bash completion lacks options”
  1. Olaf HeringSep 7, 2015
  2. Ævar Arnfjörð BjarmasonSep 7, 2015
  3. Olaf HeringSep 7, 2015
  4. Ævar Arnfjörð BjarmasonSep 8, 2015
  5. Olaf HeringSep 8, 2015
  6. Junio C HamanoSep 8, 2015

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.