# [PATCH] Add --diff-filter= documentation paragraph

2 messages from 2006-02-09 to 2006-02-09. Participants: Jon Loeliger, Junio C Hamano.
Thread: https://gitlist.dev/t/3274

## Jon Loeliger, 2006-02-09 15:12

Subject: [PATCH] Add --diff-filter= documentation paragraph
Message-ID: <E1F7DSt-0001q8-PV@jdl.com>
URL: https://gitlist.dev/e/E1F7DSt-0001q8-PV%40jdl.com

```

Signed-off-by: Jon Loeliger <jdl@jdl.com>

----

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


diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 5c85167..e00dd6c 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -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

```

## Junio C Hamano, 2006-02-09 19:53

Subject: Re: [PATCH] Add --diff-filter= documentation paragraph
Message-ID: <7vr76c9uly.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vr76c9uly.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <E1F7DSt-0001q8-PV@jdl.com>

```
Jon Loeliger <jdl@jdl.com> writes:

> Signed-off-by: Jon Loeliger <jdl@jdl.com>
>
> ----
>
> 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.

```
