From: Junio C Hamano <gitster@pobox.com>
To: Eric Kidd <git@randomhacks.net>
Cc: git@vger.kernel.org, Johannes Schindelin <johannes.schindelin@gmx.de>
Subject: Re: [RFC/PATCHv2] git submodule split
Date: Fri, 13 Feb 2009 20:37:15 -0800 [thread overview]
Message-ID: <7v3aeh3a84.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1234578258-48870-1-git-send-email-git@randomhacks.net> (Eric Kidd's message of "Fri, 13 Feb 2009 21:24:18 -0500")
Eric Kidd <git@randomhacks.net> writes:
> Proposed usage:
> git submodule split [--url submodule_repo_url] submodule_dir \
> [alternate_dir...]
>
> Replace submodule_dir with a newly-created submodule, keeping all the
> history of submodule_dir. This command also rewrites each commit in the
> current repository's history to include the correct revision of
> sumodule_dir and the appropriate .gitmodules entries.
>
> If the submodule has moved around the source tree, specify one or more
> values for alternate_dir. To specify the URL of the newly created
> repository (for use in .gitmodules), use the --url parameter.
Unfortunately, I do not think we have designed fully (nor implemented at
all) behaviour to check out different points of history that has the same
submodule moved around in the superproject tree.
There were several unconcluded discussions done in the past (and I admit I
participated in a few of them), but it may be hard to use the resulting
repository out of this tool.
I am not saying the split-submodule-history tool is bad in any way, of
course. I'm just saying that the "git submodule" side needs to be updated
to support such a history better; otherwise the tool's output won't be
usable effectively. You may want to Cc "submodule" people in the
discussion.
> Johannes Schindelin provided extensive help with the UI and
> implementation of this command (but has not yet reviewed the code).
>
> Cc: Junio C Hamano <gitster@pobox.com>
> Cc: Johannes Schindelin <johannes.schindelin@gmx.de>
Please drop these two lines. They belong to e-mail headers.
> Open questions:
>
> 1) Right now, this command is actually git-submodule-split.sh. Should
> I include this code directly into git-submodule.sh, or move it
> to git-submodule--split.sh and hook it into git-submodule.sh?
How about in contrib/ somewhere?
> 2) Should I implement a --force flag based on filter-branch? Johannes
> Schindelin has suggested that it might be better to remove the
> --force flag from filter-branch and just rely on the reflog to keep
> backups.
Sounds sensible to me, but I do not have strong feeling about this either way.
> 4) We're obviously going to need to support revision arguments other
> than --all (which is what we currently pass to filter-branch). Should
> we default to the current branch only, or to --all?
Matching what filter-branch defaults to would be the most natural,
wouldn't it?
I didn't look at the patch, though.
next prev parent reply other threads:[~2009-02-14 4:39 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 [this message]
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
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=7v3aeh3a84.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@randomhacks.net \
--cc=git@vger.kernel.org \
--cc=johannes.schindelin@gmx.de \
/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).