Re: [TopGit PATCH] tg redepend: New command.
- From
- Jan 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