Re: Feature suggestion: Filter branches by user
- Date: Wed, 30 Jan 2019 13:49:47 -0800
- From: Jacob Keller <jacob.keller@xxxxxxxxx>
- Subject: Re: Feature suggestion: Filter branches by user
On Wed, Jan 30, 2019 at 7:22 AM Victor Porton <porton@xxxxxxxx> wrote:
>
> I want Git to display all branches created by me.
>
> So we need the new feature of Git, to display all branches created by a
> given user ("me" by default).
>
> I think, the similar feature for tags may also be useful.
>
Branches don't contain authorship, as far as I know. Annotated tags
do, but lightweight tags do not.
For annotated tags you should be able to build an alias which lists
all the tag objects and includes the author, i.e.
git for-each-ref --format='%(refname)%09%(tagger)' refs/tags
This will list the refname along with its tagger.
I'm sure patches to add a "--tagger" option to git tag in list mode
would also be welcome.
Thanks,
Jake