I use a Git repository on my server to version user data files sent to the server. I'm interested in getting a list of changed files between any two revisions.
I know about git diff --name-only <rev1> <rev2>
, but this only gives me a list of file names. I'm especially interested in renames and copies, too. Ideally, the output would be something like this:
updated: userData.txt
renamed: picture.jpg -> background.jpg
copied: song.mp3 -> song.mp3.bkp
Is it possible? --name-status
also doesn't seem to indicate renames and copies.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…