Задача створити архів з файлами що були зміненні.
Для введення проекту використовувався git тому всі зміни запротокольовані.

git log --oneline
633d17514 (tag: v3.3.0) Bump version to 3.3.0 (#15433)  
e43532c9c Normalize locale files (#15434)  
f1f96ebf0 Fix being able to import more than allowed number of follows (#15384)  
4580129c9 New Crowdin updates  (#15413)  
ba748a83f Fix logo button style (#15428)  
e89648574 Fix error when changing ACL on missing objects during suspension (#15420)  
ba0b79fc5 Fix undefined method error when batch-removing statuses with ElasticSearch on (#15421)  
7e6d3a7d9 Fix unfollow action button style (#15418)  
b08d2d4f7 Fix media modal buttons not showing up on mobile (#15417)  
4950e59cd Use existing FeaturedTag serializer and delete AccountFeaturedTag serializer (#15415)  
de57efd05 Fix mentions not being deleted efficiently (#15416)  
473abc35a Fix trying to privatize empty media attachments (#15414)
git diff --name-only 633d17514 4580129c9 > filelist.txt
cat filelist.txt
AUTHORS.md  
CHANGELOG.md  
app/models/concerns/account_interactions.rb  
app/models/concerns/follow_limitable.rb  
app/models/follow.rb  
app/models/follow_request.rb  
app/services/follow_service.rb  
app/workers/authorize_follow_worker.rb  
app/workers/import/relationship_worker.rb  
app/workers/refollow_worker.rb  
app/workers/unfollow_follow_worker.rb  
config/locales/bn.yml  
config/locales/doorkeeper.hy.yml  
config/locales/eu.yml  
config/locales/gl.yml  
config/locales/hy.yml  
config/locales/id.yml  
config/locales/ja.yml  
config/locales/nl.yml  
config/locales/no.yml  
config/locales/sc.yml  
config/locales/sv.yml  
config/locales/uk.yml  
config/locales/vi.yml  
config/locales/zh-CN.yml  
config/locales/zh-TW.yml  
lib/mastodon/accounts_cli.rb  
lib/mastodon/version.rb  
spec/workers/refollow_worker_spec.rb  
 
7za a -tzip changed_files.zip @filelist.txt

Тепер файл містить змінені файли changed_files.zip

Якщо не треба копіювати видалені файли тоді список змінених файлів можна отримати так:

git diff --name-status 633d17514 4580129c9 | egrep -v "^D\t" | awk '{print $2}' > filelist.txt