I can\'t seem to get git log --branches to correctly filter its output. It seems as if Git ignores it.
For example, the head of git log --graph --
--branchesgit log lists all commits that are reachable from any that you list on the command line.
--all does the same but pretends that you listed all the refs in refs/.
--branches[= does the same but pretends that you listed all the refs in refs/heads. It also allows you to limit with a glob pattern. As a gotcha, if your glob pattern lacks ?, , or [, then an / at the end is implied.
git log topic1 topic2 topic3
means list all the commits reachable from topic1, topic2, or topic3.
git log -all
means list all the commits that are reachable from any of the refs that are output from git show-ref.
git log --branches="topic*"
means list all the commits that are reachable from from any branch that starts with the prefix topic.
https://schacon.github.io/git/git-log.html
https://schacon.github.io/git/git-rev-list.html