I think that you`re looking for –ancestry-path, in your case:
git rev-list --ancestry-path 7b4a07a..ecf5891
More Related Contents:
- How to revert multiple git commits?
- How to remove selected commit log entries from a Git repository while keeping their changes?
- Updates were rejected because the remote contains work that you do not have locally
- How can I revert multiple Git commits?
- How can one change the timestamp of an old commit in Git?
- How can I push a specific commit to a remote, and not previous commits?
- Remove specific commit
- Start a Git commit message with a hashmark (#)
- Changing git commit message after push (given that no one pulled from remote)
- How to move certain commits to be based on another branch in git?
- Git: How to ignore fast forward and revert origin [branch] to earlier commit?
- How to list all commits that changed a specific file?
- How to find the commit in which a given file was added?
- How to commit my current changes to a different branch in Git [duplicate]
- How to amend a commit without changing commit message (reusing the previous one)?
- How can I split up a Git commit buried in history?
- Why Git is not allowing me to commit even after configuration?
- git commit frequency
- Git: How can I find a commit that most closely matches a directory?
- Can you change a file content during git commit?
- Error “Updates were rejected because the remote contains work that you do not have locally”
- How do I create a new Git branch from an old commit? [duplicate]
- How to commit no change and new message?
- Git: add vs push vs commit
- git find fat commit
- Editing the git commit message in GitHub
- GIT commit as different user without email / or only email
- Git commit with no commit message
- Add commits before root commit in Git? [duplicate]
- Git remove root commit