Git development
 help / color / mirror / Atom feed
* statistics
@ 2008-07-25 11:18 Rene Herman
  2008-07-25 11:29 ` statistics Johannes Sixt
  0 siblings, 1 reply; 7+ messages in thread
From: Rene Herman @ 2008-07-25 11:18 UTC (permalink / raw)
  To: git

Hi.

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

Rene.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: statistics
  2008-07-25 11:18 statistics Rene Herman
@ 2008-07-25 11:29 ` Johannes Sixt
  2008-07-25 11:55   ` statistics Rene Herman
                     ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Johannes Sixt @ 2008-07-25 11:29 UTC (permalink / raw)
  To: Rene Herman; +Cc: git

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: statistics
  2008-07-25 11:29 ` statistics Johannes Sixt
@ 2008-07-25 11:55   ` Rene Herman
  2008-07-25 13:23   ` statistics Johannes Schindelin
  2008-07-25 22:57   ` statistics Kevin Ballard
  2 siblings, 0 replies; 7+ messages in thread
From: Rene Herman @ 2008-07-25 11:55 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: git

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: statistics
  2008-07-25 11:29 ` statistics Johannes Sixt
  2008-07-25 11:55   ` statistics Rene Herman
@ 2008-07-25 13:23   ` Johannes Schindelin
  2008-07-25 13:34     ` statistics Johannes Sixt
  2008-07-25 22:57   ` statistics Kevin Ballard
  2 siblings, 1 reply; 7+ messages in thread
From: Johannes Schindelin @ 2008-07-25 13:23 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: Rene Herman, git

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: statistics
  2008-07-25 13:23   ` statistics Johannes Schindelin
@ 2008-07-25 13:34     ` Johannes Sixt
  2008-07-25 13:41       ` statistics Johannes Schindelin
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Sixt @ 2008-07-25 13:34 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Rene Herman, git

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: statistics
  2008-07-25 13:34     ` statistics Johannes Sixt
@ 2008-07-25 13:41       ` Johannes Schindelin
  0 siblings, 0 replies; 7+ messages in thread
From: Johannes Schindelin @ 2008-07-25 13:41 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: Rene Herman, git

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: statistics
  2008-07-25 11:29 ` statistics Johannes Sixt
  2008-07-25 11:55   ` statistics Rene Herman
  2008-07-25 13:23   ` statistics Johannes Schindelin
@ 2008-07-25 22:57   ` Kevin Ballard
  2 siblings, 0 replies; 7+ messages in thread
From: Kevin Ballard @ 2008-07-25 22:57 UTC (permalink / raw)
  To: Johannes Sixt; +Cc: Rene Herman, git

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-25 22:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25 11:18 statistics Rene Herman
2008-07-25 11:29 ` statistics Johannes Sixt
2008-07-25 11:55   ` statistics Rene Herman
2008-07-25 13:23   ` statistics Johannes Schindelin
2008-07-25 13:34     ` statistics Johannes Sixt
2008-07-25 13:41       ` statistics Johannes Schindelin
2008-07-25 22:57   ` statistics Kevin Ballard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox