Re: how to display file history?
- From
Shawn Pearce <spearce@spearce.org>
- Date
- May 15, 2006, 06:00 UTC
- Message-ID
- <20060515060054.GA28252@spearce.org>
- In-Reply-To
- <CFF307C98FEABE47A452B27C06B85BB670F4F8@hdsmsx411.amr.corp.intel.com>
"Brown, Len" <len.brown@intel.com> wrote:
Show 6 quoted lines
> 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?
I'm confused - why aren't these available on your local disk? Do you not have a clone of the kernel repository local? If you don't have a clone you aren't really going to be able to get a history.
But assuming you had one use whatchanged:
git whatchanged A
will show only the commits which affected file A, listing them in reverse order (most recent to oldest).
-- Shawn.