Re: Listing files in order they are changed

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

 



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/
--
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]