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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Nieuwenhuizen <janneke-list@...>
Cc: git <git@...>, Jan Holesovsky <kendy@...>
Date: Friday, August 15, 2008 - 2:20 pm

Hi,

Jan Nieuwenhuizen wrote:


[...]

s/tg/tg redepend/?

[...]

Why not move the base-creation code in tg-create.sh to a new
function in tg.sh to use here?

[...]
[snip continuing-a-merge case]
[snip topdeps juggling]

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.

Hope that helps,
Jonathan

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[TopGit PATCH] tg redepend: New command., Jan Nieuwenhuizen, (Fri Aug 15, 9:53 am)
Re: [TopGit PATCH] tg redepend: New command., Bert Wesarg, (Mon Sep 1, 5:31 am)
Re: [TopGit PATCH] tg redepend: New command., Jan Nieuwenhuizen, (Mon Sep 1, 6:11 am)
Re: [TopGit PATCH] tg redepend: New command., Bert Wesarg, (Mon Sep 1, 6:36 am)
Re: [TopGit PATCH] tg redepend: New command., Jonathan Nieder, (Fri Aug 15, 2:20 pm)
Re: [TopGit PATCH] tg redepend: New command., Jan Nieuwenhuizen, (Mon Aug 18, 5:23 am)
Re: [TopGit PATCH] tg redepend: New command., Bert Wesarg, (Fri Aug 15, 1:16 pm)