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

Re: git-diff question

From
ACAlf Clement <alf.clement@gmail.com>
Date
Jun 19, 2008, 15:55 UTC
Message-ID
<556d90580806190855j7f247854m725ed7e6efa48f0b@mail.gmail.com>
In-Reply-To
<m3tzfpmy2b.fsf@localhost.localdomain>
Hi,
regarding git diff --help:
 --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 Unknown (X), or have had their pairing
and git diff reports mode changes...

CU, Alf

On Thu, Jun 19, 2008 at 2:03 PM, Jakub Narebski <jnareb@gmail.com> wrote:
Show 26 quoted lines
> "Alf Clement" <alf.clement@gmail.com> writes:
>
>> $ git diff
>> diff --git a/Firmware/Firmware.ccscc b/Firmware/Firmware.ccscc
>> old mode 100755
>> new mode 100644
>> ....
>> returns a list of files where the mode was changed, which seems to be
>> correct. Also
>> modified files are flaged.
>> I wonder why
>> $ git diff --diff-filter=T
>> outputs nothing.
>
> Isn't 'T' about *t*ype change, i.e. change between ordinary file,
> symlink, directory and commit (submodule)?
>
>> I am running this under Cygwin.
>
> Or perhaps this is a cause.
>
> --
> Jakub Narebski
> Poland
> ShadeHawk on #git
>
Previous: Jakub Narebski
Message 3 of 3 in “git-diff question”
  1. Alf ClementJun 19, 2008
  2. Jakub NarebskiJun 19, 2008
  3. Alf ClementJun 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.