I have two branches where commits are made independently and I would like to run a Git command that will show me all commits that went in between a certain timeframe (expressed as commit hashes) regardless of branch.
This is my test repo for the purpose of demonstration: https://github.com/jsniecikowski/testApp
If we were to imagine Git's history as a list (latest on top):
- 4332e0e on release branch
- 18bc14a on release branch
- 90f9149 on master branch
- 4f6e07f on release branch
- ca404cf on release branch
- 6cf47b3 on release branch
then I would like to say: 'give me all changes that happened between '90f9149' and '4332e0e'. Ideally I would get one commit: 18bc14a
My understanding is that this command would work:
git log --full-index --no-abbrev --format=raw -M -m --raw 90f9149d2f7367738e9d6f4a53c2c325f96a9b5f..4332e0eb24e18119b10835e361915f1f5eff16bc
However, this command is returning more results than expected.
Is this a bug with git, or am I missing something in my command?