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

Re: [TopGit PATCH] tg-create.sh: Introduce --add option to add a dependency.

From
JNJan Nieuwenhuizen <janneke-list@xs4all.nl>
Date
Aug 15, 2008, 08:10 UTC
Message-ID
<1218787834.7585.13.camel@heerbeest>
In-Reply-To
<Pine.GSO.4.62.0808131100280.1278@harper.uchicago.edu>
On wo, 2008-08-13 at 11:20 -0500, Jonathan Nieder wrote:
Hi,
> Interesting - I had imagined changing dependencies working in an
> entirely different way.
Thanks!  This is quite interesting.  A few questions
> 
> 	$ git checkout -b P' P
> 	$ git rebase --onto B' B

.. is using rebase a robust solution? We should provide a way to recover after user intervention here?

> 	$ git checkout P
> 	$ git merge --no-ff --no-commit B'   (*)

Do you remember in what area the problem is here, that would make it a lot easier for me to look.

> 	$ git read-tree -u P'

Ouch, I'm feeling so git-unitiated here; what is read-tree doing differently from merge? Isn't here a -m missing?

> The main problem I see with this story is that if B' is just B with some
> new changes added this is overly complicated.

Yes, that's my main gripe. One of the use cases I'm looking at is our ooo-build master branch; which includes ~300 topic branches.

Removing or [re-]adding one dependency using this rebase-by-merging approch would take ~7 minutes on my machine.

I'm now also looking at a .topundeps file, to support the re-adding of a depenency using the cherry-pick approach...

Greetings, Janneke.

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org
Previous: Jonathan NiederNext: Jonathan Nieder
Message 3 of 5 in “tg-create.sh: Introduce --add option to add a dependency.”
  1. tg-create.sh: Introduce --add option to add a dependency.Jan Nieuwenhuizen, Aug 13, 2008
  2. Jonathan NiederAug 13, 2008
  3. Jan NieuwenhuizenAug 15, 2008
  4. Jonathan NiederAug 15, 2008
  5. Jan NieuwenhuizenAug 18, 2008

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.