From: Junio C Hamano <gitster@pobox•com>
To: Matthew Ogilvie <mmogilvi_git@miniinfo•net>
Cc: git@vger•kernel.org, greened@obbligato•org, amdmi3@amdmi3•ru,
john@keeping•me.uk, techlivezheng@gmail•com, apenwarr@gmail•com
Subject: Re: [PATCH 1/4] subtree: support split --rejoin --squash
Date: Tue, 10 Dec 2013 14:46:38 -0800 [thread overview]
Message-ID: <xmqqk3fctjch.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <1386440485-3092-1-git-send-email-mmogilvi_git@miniinfo.net> (Matthew Ogilvie's message of "Sat, 7 Dec 2013 11:21:22 -0700")
Matthew Ogilvie <mmogilvi_git@miniinfo•net> writes:
> Allow using --squash with "git subtree split --rejoin". It
> will still split off (and save to --branch) the complete
> subtree history, but the merge done for the "--rejoin" will
> be merging a squashed representation of the new subtree
> commits, instead of the commits themselves (similar to
> how "git subtree merge --squash" works).
>
> Signed-off-by: Matthew Ogilvie <mmogilvi_git@miniinfo•net>
> ---
>
> I can think of a couple of possible objections to this patch.
> Are these (or any others) worth fixing?
>
> 1. Perhaps someone want the saved subtree (--branch) to have
> a squashed representation as well, as an option? Maybe we
> need two different --squash options? Something
> like "--rejoin-squash"?
> 2. It could definitely use some automated tests. In fact,
> pre-existing --squash functionality is hardly tested at
> all, either.
> See patch 4 comments for a script I use to help with
> mostly-manual testing.
As I am totally uninterested in "git subtree" (sorry!), I'll queue
these three patches as-is so that others who are interested and
motivated to work on polishing it can take a look at them more
easily.
Thanks.
next prev parent reply other threads:[~2013-12-10 22:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-23 20:18 [PATCH] subtree: add squash handling for split and push Pierre Penninckx
2013-11-28 18:23 ` Matthew Ogilvie
2013-11-28 22:58 ` Pierre Penninckx
2013-12-07 18:21 ` [PATCH 1/4] subtree: support split --rejoin --squash Matthew Ogilvie
2013-12-07 18:21 ` [PATCH 2/4] subtree: allow --squash and --message with push Matthew Ogilvie
2013-12-07 18:21 ` [PATCH 3/4] subtree: add --edit option Matthew Ogilvie
2013-12-07 18:21 ` [PATCH/BAD 4/4] subtree: poor bugfix for split new commits with parents before previous split Matthew Ogilvie
2013-12-10 22:46 ` Junio C Hamano [this message]
[not found] <20131207185853.GA3353@comcast.net>
[not found] ` <CAMzgWy18wH4_Ds00x7UASQjLgN8LiEucFSZFp-5PJio_pEwmnA@mail.gmail.com>
2014-01-23 3:59 ` [PATCH 1/4] subtree: support split --rejoin --squash Matthew Ogilvie
2014-01-23 8:51 ` Pierre Penninckx
2014-01-23 14:42 ` Matthew Ogilvie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqk3fctjch.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox$(echo .)com \
--cc=amdmi3@amdmi3$(echo .)ru \
--cc=apenwarr@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=greened@obbligato$(echo .)org \
--cc=john@keeping$(echo .)me.uk \
--cc=mmogilvi_git@miniinfo$(echo .)net \
--cc=techlivezheng@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox