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

Re: [TopGit PATCH] tg redepend: New command.

From
JNJan Nieuwenhuizen <janneke-list@xs4all.nl>
Date
Aug 18, 2008, 09:23 UTC
Message-ID
<1219051408.8816.34.camel@heerbeest>
In-Reply-To
<Pine.GSO.4.62.0808151241300.17250@harper.uchicago.edu>
On vr, 2008-08-15 at 13:20 -0500, Jonathan Nieder wrote:
Hi,
> s/tg/tg redepend/?
Yes.
> Why not move the base-creation code in tg-create.sh to a new
> function in tg.sh to use here?
Yes, that's better.
 
Show 16 quoted lines
> I know I suggested that code before, but the merge with B' is wasted, so
> perhaps
> 
> 	git checkout P
> 	head=$(git rev-parse --verify HEAD^0)
> 	result_tree=$(git log -1 --pretty=format:%T P')
> 	result_commit=$(git commit-tree "$result_tree" -p P -p B')
> 	git update-ref -m "commit (merge): tg-redepend" HEAD \
> 			"$result_commit" "$head" || ... (fail)
> 	test -x "$GIT_DIR/hooks/post-merge" && $GIT_DIR/hooks/post-merge 0
> 
> I'm not sure.  Is there some more porcelain-ish way to do this (create a
> merge commit when you already know the resulting and parents)?
> 
> But with that change the entire restarted=merge branch would go away,
> so I hope there is a nice way to do it.  I'll think more.
Yes, the user should get a nice chance to resolve any conflicts...

Thanks! Jan.

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org
Previous: Jonathan NiederNext: Bert Wesarg
Message 4 of 7 in “tg redepend: New command.”
  1. tg redepend: New command.Jan Nieuwenhuizen, Aug 15, 2008
  2. Bert WesargAug 15, 2008
  3. Jonathan NiederAug 15, 2008
  4. Jan NieuwenhuizenAug 18, 2008
  5. Bert WesargSep 1, 2008
  6. Jan NieuwenhuizenSep 1, 2008
  7. Bert WesargSep 1, 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.