git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: how to display file history?
@ 2006-05-15  6:13 Brown, Len
  2006-05-15  6:42 ` Junio C Hamano
  0 siblings, 1 reply; 18+ messages in thread
From: Brown, Len @ 2006-05-15  6:13 UTC (permalink / raw)
  To: spearce; +Cc: git

 
>	git whatchanged A

thanks.  I've used this on entire repos before, but
for some reason didn't think of this command name
when looking for individual file history.

Searching git(7) for "history" didn't take me here.
Searching for "log" would have, but I must have
terminated that search when git-log and git-shortlog
turned out to not be what I was looking for.

-Len

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: how to display file history?
@ 2006-05-15 19:04 Brown, Len
  0 siblings, 0 replies; 18+ messages in thread
From: Brown, Len @ 2006-05-15 19:04 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Junio C Hamano, git

 
>> >	git log --stat -- A
>> 
>> very handy indeed.
>> 
>> I was surprised on initial use that --stat is
>> limited to the file specified in "A" and doesn't
>> expand to describe the entire commit that touches "A".
>> (ie. the stat output is a subset of what is associated
>> with the displayed commit comments).
>> 
>> This, of course, is clear now, it just isn't what
>> I expected on first use.
>
>Well,  you can obviously have your cake and eat it too (ie 
>"--full-diff").
>
>I don't often end up using the "--full-diff" thing. It's almost never 
>actually worth it until I find the diff that I actually start caring 
>about, and the full diff just makes it harder to see the part 
>I explicitly told git I was interested in.

sounds good.

>So the default "show only diffs for the files asked for" 
>behaviour is in my opinion much superior (and it used to be the only
one),
>because the "show the whole thing" part ends up being something you use
only once 
>you've already skimmed the default case and decide to go deeper.

I agree.

>Of course, "gitk" ends up using the full diff by default in its diff 
>window. I'm not convinced that's the right thing, but usually 
>when I use gitk I'm primarily looking at the history and the commit
>messages to decide if it's a relevant one, not the diff, so I don't
think 
>it matters.

Yeah, I agree that gitk is fine how it is.

The only part I don't agree with above is the word "obviously".
'--full-diff --stats' didn't jump out at me from the man page.

To be fair, yes, I should probably take the time to read the docs
through
and not rely on the man pages, they've changed a lot since I last
looked.

-Len

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: how to display file history?
@ 2006-05-15 17:24 Brown, Len
  2006-05-15 17:54 ` Linus Torvalds
  0 siblings, 1 reply; 18+ messages in thread
From: Brown, Len @ 2006-05-15 17:24 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

>	git log --stat -- A

very handy indeed.

I was surprised on initial use that --stat is
limited to the file specified in "A" and doesn't
expand to describe the entire commit that touches "A".
(ie. the stat output is a subset of what is associated
with the displayed commit comments).

This, of course, is clear now, it just isn't what
I expected on first use.

thanks,
-Len

^ permalink raw reply	[flat|nested] 18+ messages in thread
* how to display file history?
@ 2006-05-15  5:52 Brown, Len
  2006-05-15  6:00 ` Shawn Pearce
  2006-05-15 15:15 ` Linus Torvalds
  0 siblings, 2 replies; 18+ messages in thread
From: Brown, Len @ 2006-05-15  5:52 UTC (permalink / raw)
  To: git

it is tiresome to access kernel.org/git tree display
to see the list of commits that changed a particular file.
(and for files on my local disk, this isn't available).

How do I print the list of commits that change a particular file
on my local disk?

thanks,
-Len
 

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

end of thread, other threads:[~2006-05-21 17:35 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15  6:13 how to display file history? Brown, Len
2006-05-15  6:42 ` Junio C Hamano
2006-05-15 15:54   ` Eric W. Biederman
2006-05-15 16:15     ` Linus Torvalds
2006-05-15 16:29       ` Eric W. Biederman
2006-05-15 16:45         ` Linus Torvalds
2006-05-15 17:55         ` J. Bruce Fields
2006-05-21 17:35         ` Jonas Fonseca
2006-05-15 17:22       ` Marco Costalba
2006-05-15 18:03         ` Linus Torvalds
2006-05-15 18:32           ` Marco Costalba
2006-05-15 18:51             ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
2006-05-15 19:04 Brown, Len
2006-05-15 17:24 Brown, Len
2006-05-15 17:54 ` Linus Torvalds
2006-05-15  5:52 Brown, Len
2006-05-15  6:00 ` Shawn Pearce
2006-05-15 15:15 ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).