Reputation: 11
I used the command "git diff --name-only"
and got output like below
FilePath/FilePath/FileName.ext
FilePath/FilePath1/FileName1.ext
I need SVN style output like
M FilePath/FilePath/FileName.ext
A FilePath/FilePath1/FileName1.ext
How to achive this?
Upvotes: 1
Views: 59
Reputation: 5517
Try the "--name-status" option instead of "--name-only":
git diff --name-status
Example output:
git diff --name-status HEAD~1 HEAD
M .gitignore
A src/File1.java
A src/File2.java
M src/File3.java
Upvotes: 1