From various sources I managed to modify a script I found to create an archive of the files that were added or changed between 2 changesets. The batch script is as follows:
setlocal enabledelayedexpansion
set output=
for /f "delims=" %%a in ('git diff --name-only %1 %2') do ( set output=!output! "%%a" )
git archive -o export.zip HEAD %output%
endlocal
This has worked great until today and all of a sudden I am getting the following error back:
The input line is too long. The syntax of the command is incorrect.
I've confirmed that the cause of this is the that result of %output% is too long but not sure if or how I can work around this?