Skip to content

Instantly share code, notes, and snippets.

@vanyasem
Created April 15, 2019 15:01
Show Gist options
  • Save vanyasem/5b02c1303405c21f43bb046836dfc184 to your computer and use it in GitHub Desktop.
Save vanyasem/5b02c1303405c21f43bb046836dfc184 to your computer and use it in GitHub Desktop.
Extract changed files in a commit
#git diff --name-only $oldsha $newsha | bash script.sh
test=" "
while read data; do
echo $data
test+=$data;
test+=" ";
done
C:/Program\ Files/7-Zip/7z.exe a dest.7z $test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment