threads / patch / 3274

patchAdd --diff-filter= documentation paragraph

Subject: [PATCH] Add --diff-filter= documentation paragraph

## tl;dr

2 messages between Feb 9, 2006 and Feb 9, 2006. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Jon Loeliger· Feb 9, 2006, 15:12 UTC · lore
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?

Show changes to Documentation/diff-options.txt +7 −0
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· Feb 9, 2006, 19:53 UTC · re: Jon Loeliger · lore

Re: [PATCH] Add --diff-filter= documentation paragraph

Jon Loeliger <jdl@jdl.com> writes:
Show 6 quoted lines
> 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.

← back to recent threads