* bash completion lacks options @ 2015-09-07 15:07 Olaf Hering 2015-09-07 15:34 ` Ævar Arnfjörð Bjarmason 0 siblings, 1 reply; 6+ messages in thread From: Olaf Hering @ 2015-09-07 15:07 UTC (permalink / raw) To: git "git send-email --f<tab>" lacks --find-renames and others. Is the list of possible options maintained manually? 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 Olaf ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash completion lacks options 2015-09-07 15:07 bash completion lacks options Olaf Hering @ 2015-09-07 15:34 ` Ævar Arnfjörð Bjarmason 2015-09-07 15:36 ` Olaf Hering 0 siblings, 1 reply; 6+ messages in thread From: Ævar Arnfjörð Bjarmason @ 2015-09-07 15:34 UTC (permalink / raw) To: Olaf Hering; +Cc: Git 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! :) > 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. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash completion lacks options 2015-09-07 15:34 ` Ævar Arnfjörð Bjarmason @ 2015-09-07 15:36 ` Olaf Hering 2015-09-08 11:28 ` Ævar Arnfjörð Bjarmason 0 siblings, 1 reply; 6+ messages in thread From: Olaf Hering @ 2015-09-07 15:36 UTC (permalink / raw) To: Ævar Arnfjörð Bjarmason; +Cc: Git Am 07.09.2015 um 17:34 schrieb Ævar Arnfjörð Bjarmason: > On Mon, Sep 7, 2015 at 5:07 PM, Olaf Hering <olaf@aepfle.de> wrote: >> 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. format-patch is a ELF binary, a link to git itself as I notice just now. Olaf ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash completion lacks options 2015-09-07 15:36 ` Olaf Hering @ 2015-09-08 11:28 ` Ævar Arnfjörð Bjarmason 2015-09-08 12:49 ` Olaf Hering 2015-09-08 18:38 ` Junio C Hamano 0 siblings, 2 replies; 6+ messages in thread From: Ævar Arnfjörð Bjarmason @ 2015-09-08 11:28 UTC (permalink / raw) To: Olaf Hering; +Cc: Git On Mon, Sep 7, 2015 at 5:36 PM, Olaf Hering <olaf@aepfle.de> wrote: > Am 07.09.2015 um 17:34 schrieb Ævar Arnfjörð Bjarmason: >> On Mon, Sep 7, 2015 at 5:07 PM, Olaf Hering <olaf@aepfle.de> wrote: > >>> 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. > > format-patch is a ELF binary, a link to git itself as I notice > just now. Yes, format-patch is written in C, but you mentioned send-email, which is a Perl script. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash completion lacks options 2015-09-08 11:28 ` Ævar Arnfjörð Bjarmason @ 2015-09-08 12:49 ` Olaf Hering 2015-09-08 18:38 ` Junio C Hamano 1 sibling, 0 replies; 6+ messages in thread From: Olaf Hering @ 2015-09-08 12:49 UTC (permalink / raw) To: Ævar Arnfjörð Bjarmason; +Cc: Git Am 08.09.2015 um 13:28 schrieb Ævar Arnfjörð Bjarmason: > Yes, format-patch is written in C, but you mentioned send-email, which > is a Perl script. send-mail is handled in my copy of the bash_completion, at the end the list the format-patch options gets appended. That list could be autogenerated at build time. Maybe I will find the time to do it myself at some point. Olaf ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash completion lacks options 2015-09-08 11:28 ` Ævar Arnfjörð Bjarmason 2015-09-08 12:49 ` Olaf Hering @ 2015-09-08 18:38 ` Junio C Hamano 1 sibling, 0 replies; 6+ messages in thread From: Junio C Hamano @ 2015-09-08 18:38 UTC (permalink / raw) To: Ævar Arnfjörð Bjarmason; +Cc: Olaf Hering, Git Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes: > On Mon, Sep 7, 2015 at 5:36 PM, Olaf Hering <olaf@aepfle.de> wrote: >> Am 07.09.2015 um 17:34 schrieb Ævar Arnfjörð Bjarmason: >>> On Mon, Sep 7, 2015 at 5:07 PM, Olaf Hering <olaf@aepfle.de> wrote: >> >>>> 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. >> >> format-patch is a ELF binary, a link to git itself as I notice >> just now. > > Yes, format-patch is written in C, but you mentioned send-email, which > is a Perl script. I think Olaf means that send-email has a mode where it can drive format-patch directly from the command line. This is a slightly related tangent, but I've been wondering if it makes sense to discourage, deprecate and eventually remove that mode of operation. It appears it is the biggest single source of poorly proof-read series, when compared to "format-patch to a directory with --cover option and then give them a final scan before running send-email on them" workflow. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-09-08 18:38 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-09-07 15:07 bash completion lacks options Olaf Hering 2015-09-07 15:34 ` Ævar Arnfjörð Bjarmason 2015-09-07 15:36 ` Olaf Hering 2015-09-08 11:28 ` Ævar Arnfjörð Bjarmason 2015-09-08 12:49 ` Olaf Hering 2015-09-08 18:38 ` Junio C Hamano
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).