I have a use case where I wanted to merge some sub directories of two repositories in a new repo.
For this, I have created patch for both the repositories for the directories I need using
git log --pretty=email --patch-with-stat --reverse --full-index --binary -- path/to/file_or_folder > patch1
git log --pretty=email --patch-with-stat --reverse --full-index --binary -- path/to/file_or_folder > patch2
Now, I wanted to merge both the patch in the new repository using git am, when I am doing it the commit history is coming repo by repo (which is expected). Is there a way I can get the commit history sorted by date, irrespective of where the commit came from?