# git-diff question

3 messages from 2008-06-19 to 2008-06-19. Participants: Alf Clement, Jakub Narebski.
Thread: https://gitlist.dev/t/14036

## Alf Clement, 2008-06-19 11:48

Subject: git-diff question
Message-ID: <556d90580806190448y2bfeebardb05c5b0b91e53a7@mail.gmail.com>
URL: https://gitlist.dev/e/556d90580806190448y2bfeebardb05c5b0b91e53a7%40mail.gmail.com

```
Hi all,

$ 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.
I am running this under cygwin.

Thanks,
Alf

```

## Jakub Narebski, 2008-06-19 12:03

Subject: Re: git-diff question
Message-ID: <m3tzfpmy2b.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3tzfpmy2b.fsf%40localhost.localdomain
In-Reply-To: <556d90580806190448y2bfeebardb05c5b0b91e53a7@mail.gmail.com>

```
"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

```

## Alf Clement, 2008-06-19 15:55

Subject: Re: git-diff question
Message-ID: <556d90580806190855j7f247854m725ed7e6efa48f0b@mail.gmail.com>
URL: https://gitlist.dev/e/556d90580806190855j7f247854m725ed7e6efa48f0b%40mail.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:
> "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
>

```
