From: Eric Kidd <git@randomhacks.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Junio C Hamano <gitster@pobox.com>,
git@vger.kernel.org, Mark Levedahl <mlevedahl@gmail.com>,
Ping Yin <pkufranky@gmail.com>, Lars Hjemli <hjemli@gmail.com>
Subject: Re: [RFC/PATCHv2] git submodule split
Date: Sat, 14 Feb 2009 09:11:16 -0500 [thread overview]
Message-ID: <431341160902140611x69a915e6lc3ee482f1ca66dc8@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.00.0902141245080.10279@pacific.mpi-cbg.de>
On Sat, Feb 14, 2009 at 6:46 AM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> As I said to Eric already, I would like this to be part of git-submodule
> proper, as I expect a lot of people needing it.
I'm happy to do whatever people want. :-) Even if this goes into
contrib/, I want to include everything a regular git command would
have: unit tests, a man page, portable sh code, etc. And I want to
make 'git-submodule-split' useful to as many people as possible.
Which brings me to a design question: Would 'git-submodule-split' be
useful to more people if it were actually two commands?
1) git submodule split: Create the new submodule, update the working
copy, but do not change any history in the super-project. This would
be useful for existing projects that don't want to rewrite existing
commits, but which want to spin off a submodule.
2) git submodule split --rewrite-history: Update the history of the
project to use the rewritten submodule. This would be most useful when
migrating repositories to git.
I've already implemented (2), but frankly, it feels like a special
case of a larger command. It would be very easy to implement (1) and
make it the default.
Cheers,
Eric
next prev parent reply other threads:[~2009-02-14 14:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-12 21:50 [RFC] What's the best UI for 'git submodule split'? Eric Kidd
2009-02-14 2:24 ` [RFC/PATCHv2] git submodule split Eric Kidd
2009-02-14 4:37 ` Junio C Hamano
2009-02-14 5:17 ` Eric Kidd
2009-02-14 9:03 ` Lars Hjemli
2009-02-14 11:44 ` Johannes Schindelin
2009-02-17 10:17 ` Nanako Shiraishi
2009-02-19 19:23 ` Lars Hjemli
2009-02-19 23:04 ` Kyle Moffett
2009-02-14 11:46 ` Johannes Schindelin
2009-02-14 14:11 ` Eric Kidd [this message]
2009-02-14 23:01 ` Johannes Schindelin
2009-02-14 23:13 ` Sverre Rabbelier
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=431341160902140611x69a915e6lc3ee482f1ca66dc8@mail.gmail.com \
--to=git@randomhacks.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hjemli@gmail.com \
--cc=mlevedahl@gmail.com \
--cc=pkufranky@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).