Skip to contentSkip to conversation

Add --diff-filter= documentation paragraph

PATCH In review Jon Loeliger 2 participants 2 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add --diff-filter= documentation paragraph

----

So, I don't know what the "*" selection flag does. It is called "AON" in the source. Anyone?

Documentation/diff-options.txt +0 -0
index 5c85167..e00dd6c 100644
@@ -35,6 +35,13 @@
 -C::

Detect copies as well as renames.

+--diff-filter=[ACDMRTUX*B]::
+ Select only files that are Added (A), Copied (C), Deleted (D),
+ Modified (M), Renamed (R), have their Type (mode) changed,
+ are Unmerged (U), are Unknown (X), are "AON" (*),
+ or have had their pairing Broken (B). Any combination of
+ the filter characters may be used.
+
--find-copies-harder::
For performance reasons, by default, -C option finds copies only if the original file of the copy was modified in the same

#1 lore raw
Quoted 6 lines · Jon Loeliger

----

So, I don't know what the "*" selection flag does. It is called "AON" in the source. Anyone?

That's All-or-None.

After applying the other filters if there is anything left, then spit out everything (including the ones that did not pass the other filters). Otherwise do not output anything.

In other words,

	-M --pretty --diff-filter='R'

shows log for a commit that contains a rename, and diff for only renamed paths. On the other hand,

	-M --pretty --diff-filter='R*'

shows the same log and diff for all paths the commit touches, not just the renamed ones.