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

Re: [PATCH] rebase: introduce --update-branches option

From
Taylor Blau <me@ttaylorr.com>
Date
Sep 3, 2019, 01:39 UTC
Message-ID
<20190903013959.GA40029@syl.lan>
In-Reply-To
<xmqqwoeqtbs2.fsf@gitster-ct.c.googlers.com>
Hi Junio,
On Mon, Sep 02, 2019 at 06:21:33PM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> "brian m. carlson" <sandals@crustytoothpaste.net> writes:
>
> > I like the idea of using existing tooling for this and not needing an
> > additional verb.
> >
> > My gut tells me folks may want a bit more control over *which* branches
> > are rebased, but I don't have a personal need for that, so I'm not going
> > to request it or propose an interface for it.
>
> FWIW, I am in favor of both of the above two points.  It is quite
> clear because "exec git branch -f <that branch name>" is spelled
> out, people can remove the ones they want to keep a copy of when
> they need to.

I agree with what you're saying here. I don't see myself having a need to modify the 'exec git branch -f ...' line, so I have no real need to make an interface suggestion per brian's comment above, but I happened to think of one while reading this thread that seemed worth pointing out.

Perhaps we could avoid inserting the 'exec git branch -f' step in the todo list for branches that have a configuration section forbidding them from being updated?

For example, the configuration:
  [branch "dont-update-me"]
    updateAfterRebase = false

would cause the rebase of a branch upstream from 'dont-update-me' to omit the 'git branch -f dont-update-me'.

To be honest, this configuration option seems like a knob we don't need. Especially since now three of us feel that removing the 'exec' line suffices anyway. I suppose that I could see a user wanting some integration branch to not get updated over many rebases, but it seems a little contrived.

Anyway, perhaps others can chime in and share what they think about this interface and whether or not we need it. If not, we can simply file this away.

Show 5 quoted lines
> I didn't look at the code more deeply than just eyeballing and
> noticing style violations etc., and will leave the reviewing to
> others for now.
>
> Thanks.

Thanks, Taylor

Previous: Junio C HamanoNext: Warren He
Message 12 of 16 in “rebase: introduce --update-branches option”
  1. rebase: introduce --update-branches optionWarren He, Sep 2, 2019
  2. rebase: introduce --update-branches optionWarren He, Sep 2, 2019
  3. Johannes SchindelinSep 3, 2019
  4. rebase: introduce --update-branches optionWarren He, Sep 7, 2019
  5. rebase: introduce --update-branches optionWarren He, Sep 7, 2019
  6. Phillip WoodSep 9, 2019
  7. Johannes SchindelinSep 9, 2019
  8. Junio C HamanoSep 9, 2019
  9. Phillip WoodSep 23, 2019
  10. brian m. carlsonSep 3, 2019
  11. Junio C HamanoSep 3, 2019
  12. Taylor BlauSep 3, 2019
  13. Warren HeSep 7, 2019
  14. brian m. carlsonSep 8, 2019
  15. Phillip WoodSep 3, 2019
  16. Warren HeSep 7, 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.