2

I need to create a list with files which was added, changed and deleted between two git revisions. List with added/changed files I can get by this command:

git diff --name-only $from_revision $to_revision > "changes.txt" 

it gives a simple and clean list in changes.txt like this:

addons/tiny_mce/plugins/image/plugin.min.org.js addons/webrtc/adapter-latest.js templates/standard/style/review.css 

My question is how can I generate a similar list with files deleted between two commits?

OS: Ubuntu 16.04, git: version 1.9

1 Answer 1

3

You can use --diff-filter and filter only deleted files with D :

git diff --name-only --diff-filter=D $from_revision $to_revision 
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, exactly what I need

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.