git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Long names for `git log -S` and `git log -G`
@ 2024-11-18 23:56 Illia Bobyr
  2024-11-19  3:52 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Illia Bobyr @ 2024-11-18 23:56 UTC (permalink / raw)
  To: git

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-02-05  7:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 23:56 Long names for `git log -S` and `git log -G` Illia Bobyr
2024-11-19  3:52 ` Junio C Hamano
2024-11-19 18:58   ` Jeff King
2024-11-21 23:31     ` Illia Bobyr
2024-11-22 10:51       ` Junio C Hamano
2025-02-05  2:24         ` [PATCH v2 0/1] " Illia Bobyr
2025-02-05  2:24         ` [PATCH v2 1/1] diff: --patch{-modifies,grep} arg names for -S and -G Illia Bobyr
2025-02-05  7:15           ` Johannes Sixt

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).