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

Long names for `git log -S` and `git log -G`

From
Illia Bobyr <illia.bobyr@gmail.com>
Date
Nov 18, 2024, 23:56 UTC
Message-ID
<24458598-ebbe-41fc-8517-457fa65ed481@gmail.com>
Hello,

I would like to add long names for the `-S` and `-G` options for `git log`. It seems that most options have long versions, though there are some exceptions.

I was wondering if there could be any objections. And also, what would be a good name for each.

Both are provided by the diff-pickaxe functionality. `-S` is already affected by `--pickaxe-regex` and both `-G` and `-S` are affected by `--pickaxe-all`.

Also,`diffcore` docs says:
 > "-G<regular-expression>" (mnemonic: grep)

I was thinking of `--pickaxe` for `-S` and `--grep` for `-G`. And it would probably make sense to discuss this before I try submitting a patch.

`--pickaxe-grep` for `-G` seems like a reasonable alternative name for `-G`. Not sure what would be a reasonably short alternative for `-S`. `--pickaxe-occurance-change` seems too long, and might not be as clear. `--pickaxe-occurance-count-change` is just way too long.

Thank you, Illia Bobyr

Next: Junio C Hamano
Message 1 of 8 in “Long names for `git log -S` and `git log -G`”
  1. Illia BobyrNov 18, 2024
  2. Junio C HamanoNov 19, 2024
  3. Jeff KingNov 19, 2024
  4. Illia BobyrNov 21, 2024
  5. Junio C HamanoNov 22, 2024
  6. 0/1 Long names for `git log -S` and `git log -G`Illia Bobyr, Feb 5, 2025
  7. 1/1 diff: --patch{-modifies,grep} arg names for -S and -GIllia Bobyr, Feb 5, 2025
  8. Johannes SixtFeb 5, 2025

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.