git - List files in order of last modification date -


For, when they were touched and the oldest is there any way to do this?

There is no way (from which I know) It's using standard GIT commands Need some type of git blame for the complete consortia, identifying the last commitment in history that has changed every file. Of course, you can use the standard git blame , to parse the production of porcelain production to identify the timestamp of the latest comma which adds content to the file, and according to that timestamp, the files Sorts:

  #! / Bin / bash function last-modified () {git blame -p "$ 1" | Awk 'BEGIN {print 0; } $ 1 == "author-time" {print $ 2; } '| Sort-N | Tail-n 1} function list-files () {file $ (git ls-files); Do dumb "$ (last-modified $ file) $ file" done} list-files | Sort this - n  

This method is only able to register added content in one file, however, the content deletion Not file author-time . Even when starting with

, it will break you down

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -