git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Feature suggestion: Filter branches by user

From
Jacob Keller <jacob.keller@gmail.com>
Date
Jan 30, 2019, 21:58 UTC
Message-ID
<CA+P7+xojhETwiwX-ADMoY8Ln8DJ9RSRq6NWfLrtarLv=rBh22w@mail.gmail.com>
In-Reply-To
<5e27b012-c915-e390-9391-e42e1c9bb08b@narod.ru>
On Wed, Jan 30, 2019 at 1:51 PM Victor Porton <porton@narod.ru> wrote:
Show 14 quoted lines
>
> On 30/01/2019 23:49, Jacob Keller wrote:
> > On Wed, Jan 30, 2019 at 7:22 AM Victor Porton <porton@narod.ru> 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.
> So it should be changed. Branches should contain authorship (to
> implement my feature suggestion).
If you wanted to implement such a feature, yes that would have to be part if it.

I do not believe that it would be easy, and it would likely require a lot of effort to do so, because branches don't point to specific objects (unlike annotated tags), and thus the information about "who created a branch" would not align well with an object.

You *can* use the most recent commit in a branch as a proxy of "who last edited this branch", possibly by using the committer.

However, because branches change over time, (as new commits are added), you can't simply store the information of who created the branch as an object (which is what annotated tags do).

I'm not sure this is feasible.

A simpler solution for your end, is to have an standard prefix you use for your own branches (i.e. I use jk-, because that's my initials). Then you can use prefix matching to find the branches that are your own.

Thanks, Jake

P.S. It helps if you leave the list in the reply line so that the discussion remains public, as this is an open mailing list.

Previous: Jacob Keller
Message 3 of 3 in “Feature suggestion: Filter branches by user”
  1. Victor PortonJan 30, 2019
  2. Jacob KellerJan 30, 2019
  3. Jacob KellerJan 30, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.