# statistics

7 messages from 2008-07-25 to 2008-07-25. Participants: Rene Herman, Johannes Sixt, Johannes Schindelin, Kevin Ballard.
Thread: https://gitlist.dev/t/14672

## Rene Herman, 2008-07-25 11:18

Subject: statistics
Message-ID: <4889B66D.4020306@keyaccess.nl>
URL: https://gitlist.dev/e/4889B66D.4020306%40keyaccess.nl

```
Hi.

Is there a (non-depressing) way of getting "which files did not change 
since <rev>" out of git?

Rene.

```

## Johannes Sixt, 2008-07-25 11:29

Subject: Re: statistics
Message-ID: <4889B912.9040006@viscovery.net>
URL: https://gitlist.dev/e/4889B912.9040006%40viscovery.net
In-Reply-To: <4889B66D.4020306@keyaccess.nl>

```
Rene Herman schrieb:
> Hi.
> 
> Is there a (non-depressing) way of getting "which files did not change
> since <rev>" out of git?

What is "non-depressing"?

Try this if you are using bash:

  comm -13 <(git diff --name-only your-rev-here) <(git ls-files)

-- Hannes

```

## Rene Herman, 2008-07-25 11:55

Subject: Re: statistics
Message-ID: <4889BF2F.7050309@keyaccess.nl>
URL: https://gitlist.dev/e/4889BF2F.7050309%40keyaccess.nl
In-Reply-To: <4889B912.9040006@viscovery.net>

```
On 25-07-08 13:29, Johannes Sixt wrote:

> Rene Herman schrieb:

>> Is there a (non-depressing) way of getting "which files did not change
>> since <rev>" out of git?
> 
> What is "non-depressing"?
> 
> Try this if you are using bash:
> 
>   comm -13 <(git diff --name-only your-rev-here) <(git ls-files)

That classifies as non-depressing, thank you. --name-only, process 
substitution _and_ comm -13 hadn't featured in my attempts yet.

Rene.

```

## Johannes Schindelin, 2008-07-25 13:23

Subject: Re: statistics
Message-ID: <alpine.DEB.1.00.0807251519290.11976@eeepc-johanness>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0807251519290.11976%40eeepc-johanness
In-Reply-To: <4889B912.9040006@viscovery.net>

```
Hi,

On Fri, 25 Jul 2008, Johannes Sixt wrote:

>   comm -13 <(git diff --name-only your-rev-here) <(git ls-files)

Thanks.  I learnt two new things from that: comm (funnily, I did not know 
that tool), and <() (looks almost like a puffin, doesn't it?).

But should it not be -12?

Ciao,
Dscho

```

## Johannes Sixt, 2008-07-25 13:34

Subject: Re: statistics
Message-ID: <4889D66E.9090802@viscovery.net>
URL: https://gitlist.dev/e/4889D66E.9090802%40viscovery.net
In-Reply-To: <alpine.DEB.1.00.0807251519290.11976@eeepc-johanness>

```
Johannes Schindelin schrieb:
> On Fri, 25 Jul 2008, Johannes Sixt wrote:
> 
>>   comm -13 <(git diff --name-only your-rev-here) <(git ls-files)
> 
> But should it not be -12?

I don't think so:

  -1 .. suppress lines unique to 1st arg, i.e. removed files
  -2 .. suppress lines unique to 2nd arg, i.e. unmodified files
  -3 .. suppress lines in both, i.e. modified and added files

We want to keep lines that -2 would remove, that leaves -1 and -3.

-- Hannes

```

## Johannes Schindelin, 2008-07-25 13:41

Subject: Re: statistics
Message-ID: <alpine.DEB.1.00.0807251541230.11976@eeepc-johanness>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0807251541230.11976%40eeepc-johanness
In-Reply-To: <4889D66E.9090802@viscovery.net>

```
Hi,

On Fri, 25 Jul 2008, Johannes Sixt wrote:

> Johannes Schindelin schrieb:
> > On Fri, 25 Jul 2008, Johannes Sixt wrote:
> > 
> >>   comm -13 <(git diff --name-only your-rev-here) <(git ls-files)
> > 
> > But should it not be -12?
> 
> I don't think so:
> 
>   -1 .. suppress lines unique to 1st arg, i.e. removed files
>   -2 .. suppress lines unique to 2nd arg, i.e. unmodified files
>   -3 .. suppress lines in both, i.e. modified and added files
> 
> We want to keep lines that -2 would remove, that leaves -1 and -3.

Oh, but of course!

Thanks again,
Dscho

```

## Kevin Ballard, 2008-07-25 22:57

Subject: Re: statistics
Message-ID: <65DE6D62-2507-4C49-94A7-B5DBD7FCC8DC@sb.org>
URL: https://gitlist.dev/e/65DE6D62-2507-4C49-94A7-B5DBD7FCC8DC%40sb.org
In-Reply-To: <4889B912.9040006@viscovery.net>

```
On Jul 25, 2008, at 4:29 AM, Johannes Sixt wrote:

> Rene Herman schrieb:
>> Hi.
>>
>> Is there a (non-depressing) way of getting "which files did not  
>> change
>> since <rev>" out of git?
>
> What is "non-depressing"?
>
> Try this if you are using bash:
>
>  comm -13 <(git diff --name-only your-rev-here) <(git ls-files)

Neat, I never knew about comm before. I probably would have come up  
with something like

   cat <(git ls-tree -r $REV) <(git ls-tree -r HEAD) | sort | uniq -d  
| cut -f 2 | sort

-Kevin Ballard

-- 
Kevin Ballard
http://kevin.sb.org
kevin@sb.org
http://www.tildesoft.com

```
