{"thread":{"id":"3274","subject":"[PATCH] Add --diff-filter= documentation paragraph","startedAt":"2006-02-09T15:12:11Z","lastAt":"2006-02-09T19:53:45Z","messageCount":2,"participants":["Jon Loeliger","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"15789","messageId":"E1F7DSt-0001q8-PV@jdl.com","threadId":"3274","inReplyTo":null,"subject":"[PATCH] Add --diff-filter= documentation paragraph","fromName":"Jon Loeliger","fromEmail":"jdl@jdl.com","sentAt":"2006-02-09T15:12:11Z","receivedAt":"2006-02-09T15:12:11Z","isPatch":true,"sender":{"key":"jdl@jdl.com","avatar":"https://gravatar.com/avatar/75ce9a10b151acd2c28ec4ab2136dba7b2ff1634530bd04b155981a749d08a64?d=mp&s=160"},"body":"\nSigned-off-by: Jon Loeliger <jdl@jdl.com>\n\n----\n\nSo, I don't know what the \"*\" selection flag does.\nIt is called \"AON\" in the source.  Anyone?\n\n\ndiff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt\nindex 5c85167..e00dd6c 100644\n--- a/Documentation/diff-options.txt\n+++ b/Documentation/diff-options.txt\n@@ -35,6 +35,13 @@\n -C::\n\tDetect copies as well as renames.\n\n+--diff-filter=[ACDMRTUX*B]::\n+\tSelect only files that are Added (A), Copied (C), Deleted (D),\n+\tModified (M), Renamed (R), have their Type (mode) changed,\n+\tare Unmerged (U), are Unknown (X), are \"AON\" (*),\n+\tor have had their pairing Broken (B).  Any combination of\n+\tthe filter characters may be used.\n+\n --find-copies-harder::\n\tFor performance reasons, by default, -C option finds copies only\n\tif the original file of the copy was modified in the same\n"},{"id":"15797","messageId":"7vr76c9uly.fsf@assigned-by-dhcp.cox.net","threadId":"3274","inReplyTo":"E1F7DSt-0001q8-PV@jdl.com","subject":"Re: [PATCH] Add --diff-filter= documentation paragraph","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-02-09T19:53:45Z","receivedAt":"2006-02-09T19:53:45Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jon Loeliger <jdl@jdl.com> writes:\n\n> Signed-off-by: Jon Loeliger <jdl@jdl.com>\n>\n> ----\n>\n> So, I don't know what the \"*\" selection flag does.\n> It is called \"AON\" in the source.  Anyone?\n\nThat's All-or-None.\n\nAfter applying the other filters if there is anything left, then\nspit out everything (including the ones that did not pass the\nother filters).  Otherwise do not output anything.\n\nIn other words,\n\n\t-M --pretty --diff-filter='R'\n\nshows log for a commit that contains a rename, and diff for only\nrenamed paths.  On the other hand,\n\n\t-M --pretty --diff-filter='R*'\n\nshows the same log and diff for all paths the commit touches,\nnot just the renamed ones.\n"}]}