git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation: diff-filter=T only tests for symlink changes

From
AMAnders Melchiorsen <mail@cup.kalibalik.dk>
Date
Oct 18, 2008, 08:49 UTC
Message-ID
<87vdvq5lu4.fsf_-_@cup.kalibalik.dk>
In-Reply-To
<7vzll2epuh.fsf@gitster.siamese.dyndns.org>

With the previous text, one could get the understanding that diff-filter=T also tested for changes in the executable bit.

Signed-off-by: Anders Melchiorsen <mail@cup.kalibalik.dk>
---
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
> There are other "commit pickers" such as -S<strting> and
> --diff-filter that do not absolutely have to exist (iow, they could
> also be scripted), but what they pick earned easy shortcuts because
> the need is very common. Once you can demonstrate that the need to
> pick executable-bit changes is also very common, _and_ if you can
> come up with a clean solution, we might add a commit picker that
> looks for changes in executable-ness in the future. I dunno.
You are right that this should be a rare need.

I didn't mean to push for this feature. I just offered to implement it, as I needed it myself and din't see other ways. A script will work fine for me, I should have thought of that.

The documentation patch that I promised is here.

Thanks, Anders.

 Documentation/diff-options.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 7788d4f..7604a13 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -137,7 +137,7 @@ endif::git-format-patch[]
 --diff-filter=[ACDMRTUXB*]::
 	Select only files that are Added (`A`), Copied (`C`),
 	Deleted (`D`), Modified (`M`), Renamed (`R`), have their
-	type (mode) changed (`T`), are Unmerged (`U`), are
+	type (symlink/regular file) changed (`T`), are Unmerged (`U`), are
 	Unknown (`X`), or have had their pairing Broken (`B`).
 	Any combination of the filter characters may be used.
 	When `*` (All-or-none) is added to the combination, all
-- 
1.6.0.2.514.g23abd3
Previous: Junio C HamanoNext: Nanako Shiraishi
Message 8 of 13 in “--diff-filter=T does not list x changes”
  1. Anders MelchiorsenOct 15, 2008
  2. Jeff KingOct 16, 2008
  3. Junio C HamanoOct 17, 2008
  4. Anders MelchiorsenOct 17, 2008
  5. Junio C HamanoOct 17, 2008
  6. Anders MelchiorsenOct 17, 2008
  7. Junio C HamanoOct 17, 2008
  8. Documentation: diff-filter=T only tests for symlink changesAnders Melchiorsen, Oct 18, 2008
  9. Nanako ShiraishiOct 18, 2008
  10. Junio C HamanoOct 18, 2008
  11. Junio C HamanoOct 18, 2008
  12. Nanako ShiraishiOct 19, 2008
  13. Anders MelchiorsenOct 19, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.