I would like to extract the diff of all commits that pass a certain regex in their messages.
For example:
- Commit 4: "JIRA-12 Deleted Something" diff4
- Commit 3: "JIRA-13 Modified something" diff3
- Commit 2: "JIRA-13 Added Another thing" diff2
- Commit 1: "JIRA-12 Added something" diff1
I would like to be able to get the diff for all the commit that have JIRA-12
in their messages.
I imagine I should type something like git diff --message "*JIRA-12*"
that would give me diff1 + diff2.
Is there a Git command that does that? Or are there other means to do that?