Re: Listing files in order they are changed
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- Sep 24, 2010, 07:59 UTC
- Message-ID
- <alpine.DEB.2.00.1009240855080.31704@ds9.cixit.se>
- In-Reply-To
- <20100923203814.GA10951@sigill.intra.peff.net>
Jeff King:
> git log --pretty=format: --name-only |
> grep . |
> perl -ne 'print unless $seen{$_}++'Nice one!
That made me come up with this, which shows a timestamp next to each file:
git log --pretty=format:/%ai --name-only |
grep . |
perl -ne 'if (m(^/(.*))) { $date = $1; } else { print "$date $_" unless $seen{$_}++; }'(change %ai into whatever timestamp you want to show)
Mutating that into something that calls "touch" might be useful for those of us who would like an initial check-out to have last-modified times like the ones CVS would give you.
-- \\// Peter - http://www.softwolves.pp.se/