I could know the merging dates of git checked in by using this command:
git log --after='2015-05-12' --merges
It would show git log of revision history after 12 May 2015.
Is there any way to combine this with git archive?
The objective is to:
Export all the modified files being merged after 12 May 2015 into one folder location.
Thank you in advance!
Well, I think your objective can reached in the following steps:
git log --after='2015-05-12' --merges --pretty=format:%H
(there're simpler ways to do the same but nevermind)git diff <sha1>..HEAD --name-only
HEAD
in the archive limiting the files by the list received on the previous stepIf the number of files is small enough (i.e. it doesn't exceed the limit of command line parameters) the command looks like this: