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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Visher <tim.visher@xxxxxxxxx> writes:

> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]