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

Re: [RFC PATCH 0/2] Allow detached forms (--option arg) for git log options.

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 26, 2010, 19:31 UTC
Message-ID
<20100726193109.GA1043@burratino>
In-Reply-To
<1280168078-31147-1-git-send-email-Matthieu.Moy@imag.fr>
Hi Matthieu,
Matthieu Moy wrote:
>                    is there any reason why "git log" hasn't been
> migrated to parse-option? Or is it only that nobody did it yet?
Please go ahead. :)

The difficult piece is that the diff and revision handling options are shared by a large number of commands.

I think my favorite idea is to provide macros to include the appropriate entries in option tables[1]. Plus side: very easy for callers to use. Downside: bloats the option tables, though I think that can be worked around.

Junio seemed to suggest that adapting the current multi-pass procedure might be easier[2].

That said, in the meantime, something like this series (just for -S it would be a big improvement already) would make sense to me.

Thanks. Jonathan

[1] http://thread.gmane.org/gmane.comp.version-control.git/85354/focus=85391 [2] http://thread.gmane.org/gmane.comp.version-control.git/85354/focus=85362

Previous: Sverre RabbelierNext: Pierre Habouzit
Message 14 of 20 in “Allow detached forms (--option arg) for git log options.”
  1. 0/2 Allow detached forms (--option arg) for git log options.Matthieu Moy, Jul 26, 2010
  2. 1/2 Allow "git log --grep foo" as synonym for "git log --grep=foo".Matthieu Moy, Jul 26, 2010
  3. Sverre RabbelierJul 27, 2010
  4. Miles BaderJul 27, 2010
  5. Jakub NarebskiJul 27, 2010
  6. Matthieu MoyJul 27, 2010
  7. Ævar Arnfjörð BjarmasonJul 27, 2010
  8. Matthieu MoyJul 27, 2010
  9. Ævar Arnfjörð BjarmasonJul 27, 2010
  10. Matthieu MoyJul 27, 2010
  11. Ævar Arnfjörð BjarmasonJul 27, 2010
  12. 2/2 Allow "git log -S string" as synonym for "git log -Sstring".Matthieu Moy, Jul 26, 2010
  13. Sverre RabbelierJul 27, 2010
  14. Jonathan NiederJul 26, 2010
  15. Pierre HabouzitJul 27, 2010
  16. Jakub NarebskiJul 27, 2010
  17. Pierre HabouzitJul 28, 2010
  18. Jakub NarebskiJul 29, 2010
  19. Pierre HabouzitJul 29, 2010
  20. Jonathan NiederAug 1, 2010

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.