git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Command line hint of the day
@ 2005-11-14 18:58 Linus Torvalds
  2005-11-14 19:08 ` Andreas Ericsson
  0 siblings, 1 reply; 2+ messages in thread
From: Linus Torvalds @ 2005-11-14 18:58 UTC (permalink / raw)
  To: Git Mailing List


So I got a question about ppp in the kernel, and quite frankly, the things 
I know about ppp can be engraved with a jack-hammer on a grain of rice.

So what did I do?

	git whatchanged $(git-ls-files *ppp*)

actually does something useful. It will only look at files that are 
_currently_ called *ppp*, so you'd not see files that have been deleted, 
but it does the right thing for what I wanted.

You can also do "git log" or "gitk" instead of "git whatchanged", but the 
whatchanged thing has the advantage that it can run incrementally. Doing a 
"git log" ends up figuring out _all_ the commits before it can display 
them, since it also does the densification etc.

Maybe we should have a git man-page section of "strange but useful 
examples"? Things people do just because they are useful, but may not be 
immediately obvious to somebody who comes from CVS-land and uses git as 
just another old SCM?

		Linus

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

end of thread, other threads:[~2005-11-14 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 18:58 Command line hint of the day Linus Torvalds
2005-11-14 19:08 ` Andreas Ericsson

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).