Jonathan Nieder <jrnieder@xxxxxxxxx> writes: > Putting it in context, we have: > > pickaxe options: > -S: detect changes in occurence count of a string > -G: grep lines in diff for a string > > --pickaxe-all: > do not filter the diff when the patch matches pickaxe > conditions. > > kind of like log --full-diff, but restricted to pickaxe > options. > --pickaxe-regex: treat -S argument as a regex, not a string > > Is this another kind of pickaxe option? It feels similar to -S, but > at an object level instead of a substring level, so in a way it would > be appealing to call it --pickaxe-object. Does --pickaxe-all affect > it like it affects -S and -G? It does feel quite close to -S, but is slightly different. Instead of spelling out the exact contents to pass as the argument to the -S option, you are giving a blob object name instead. However, if you rename path F to G without any modification, or if you flip only the mode bits, -S would reject such a filepair, as both sides have the same number of the sought-after string, I think. Unlike -S, this new thing should show such a filepair because it is designed to show any filepair with either (or both) side has the sought-after object. We could make this identical to -S, i.e. only when a filepair has sought-after object on either (or both) sides *and* its pre and post image sides do not talk about the same object. Note. I am phrasing the above awkwardly because we can ask for more than one object, and a filepair that changes a path from object A to object B, both of which are what we are looking for, want to be caught. If I phrased the above as "only when only one side of a filepair has an object we are looking for and the other side does not", such a filepair would not be shown. I have a suspicion that such a change may be worthwhile. > Another context to put it in is: > > --diff-filter: > limit paths (but not commits?) to those with a change > matching optarg IIUC, this is applied at the output phase after all of the rename, pickaxe etc. are done (e.g. "Now you have the diff to give me, show me only the additions in it"). It is a poor match for this new thing, as "Now you have the diff to give me, show me only the ones that involve these blobs" does not sound all that useful.