* [PATCH] Add --diff-filter= documentation paragraph
@ 2006-02-09 15:12 Jon Loeliger
2006-02-09 19:53 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Jon Loeliger @ 2006-02-09 15:12 UTC (permalink / raw)
To: git
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add --diff-filter= documentation paragraph
2006-02-09 15:12 [PATCH] Add --diff-filter= documentation paragraph Jon Loeliger
@ 2006-02-09 19:53 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-02-09 19:53 UTC (permalink / raw)
To: Jon Loeliger; +Cc: git
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-09 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-09 15:12 [PATCH] Add --diff-filter= documentation paragraph Jon Loeliger
2006-02-09 19:53 ` Junio C Hamano
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).