How can I list files sorted by their modification time?
I want the git modification time, not the system modification time. For example, if I have a (committed) file README
, then
touch README
will change the system modification time... but the git status would remain unchanged.
If I try
git ls-files -z | xargs -0 ls -t
this will sort by the system modification time.
Is there any option to git ls-files
that would list files sorted by their git modification time?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…