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

Re: Print last time and committer a file was touched by for a whole repo

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 1, 2010, 20:12 UTC
Message-ID
<m3eifnner1.fsf@localhost.localdomain>
In-Reply-To
<AANLkTikRElk07ZqK0TOM2WD31t-H5RVngvHNU9KM7e9D@mail.gmail.com>
Tim Visher <tim.visher@gmail.com> writes:
Show 5 quoted lines
> I need to get a listing of the entire contents of my current repo (as
> in, I don't need deleted files or anything like that, just the current
> snapshot) with the time the file was committed and who committed it.
> 
> Thoughts on how to do that?

There does not exist a single git command that would do what you want. You would need to use 'git log -1 --follow' for each file in current snapshot ('git ls-tree -r HEAD'). IIRC there is some example how to do that in GitFaq or GitTips on git wiki (http://git.wiki.kernel.org).

Perhaps in the future 'git blame <directory>' would provide such output, or its equivalent (tree blame).

By the way, what do you ned this for? Git versions whole project at once, not individual files. Is it some legacy from CVS?

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Jonathan NiederNext: Tim Visher
Message 6 of 9 in “Print last time and committer a file was touched by for a whole repo”
  1. Tim VisherJul 1, 2010
  2. Eric RaibleJul 1, 2010
  3. Jonathan NiederJul 1, 2010
  4. Eric WongJul 1, 2010
  5. Jonathan NiederJul 2, 2010
  6. Jakub NarebskiJul 1, 2010
  7. Tim VisherJul 2, 2010
  8. Jakub NarebskiJul 3, 2010
  9. Jakub NarebskiJul 5, 2010

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.