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 --all --decorate
, prints:
* commit 3ae0d17538f787bdde68f37f6644ffe9652d8dc1 (HEAD, feature/branch-ignore)
| Author: Chris Lewis <chris@chris.to>
| Date: Mon Mar 14 17:39:56 2011 -0700
|
| Ignore merge commits, as they're going to be duplicating events
|
* commit 770534e9d77acb03eaf842440c879aec1c5b5500
| Author: Chris Lewis <chris@chris.to>
| Date: Tue Mar 8 14:39:40 2011 -0800
|
| Removed another remote branch check
|
Let's say I want to filter by master
, which should mean these commits are ignored. The head of git log --graph --all --decorate --branches=master
, is also:
* commit 3ae0d17538f787bdde68f37f6644ffe9652d8dc1 (HEAD, feature/branch-ignore)
| Author: Chris Lewis <chris@chris.to>
| Date: Mon Mar 14 17:39:56 2011 -0700
|
| Ignore merge commits, as they're going to be duplicating events
|
* commit 770534e9d77acb03eaf842440c879aec1c5b5500
| Author: Chris Lewis <chris@chris.to>
| Date: Tue Mar 8 14:39:40 2011 -0800
|
| Removed another remote branch check
|
Git doesn't seem to be filtering. It doesn't seem to make any difference whether --branches
is passed with other arguments or not. My Git version is git version 1.7.4.1
. Does anyone know how to use this command successfully?
EDIT: All I want to be able to do is get the log of one branch or another, without having to do a checkout first.