git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Brown, LenNext: Linus Torvalds
Message 2 of 3 in “how to display file history?”
  1. Brown, LenMay 15, 2006
  2. Shawn PearceMay 15, 2006
  3. Linus TorvaldsMay 15, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.