I would like a way to log certain commits and also submit path arguments so that the diff on those paths, if any, is shown for each commit as if those path arguments were supplied like git diff -- <path args>.
git log -p <path args> almost accomplishes this. Here's how I'd like it to work:
$ git log develop..mybranch -p mydir
1010101 my commit msg
(diff of files in mydir)
2323232 my other commit msg
(nothing here because the commit doesn't touch mydir)
The problem is that the second commit wouldn't be shown, because it does not touch mydir.
How can I achieve the equivalent of git log -p <path args>, but not skipping commits that don't touch the given paths?