From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Ping Yin <pkufranky@gmail.com>
Cc: Alex Riesen <raa.lkml@gmail.com>, Git Mailing List <git@vger.kernel.org>
Subject: Re: How to change a submodue as a subdirectory?
Date: Thu, 15 Nov 2007 06:16:12 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.64.0711150614380.4362@racer.site> (raw)
In-Reply-To: <46dff0320711142136r2c70d698vd380c02188f95507@mail.gmail.com>
Hi,
On Thu, 15 Nov 2007, Ping Yin wrote:
> On Nov 15, 2007 4:26 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
> > Ping Yin, Wed, Nov 14, 2007 15:37:57 +0100:
> > > I have a super project superA, and a submodue subB. Now i decide to
> > > switch subB from submodule to sub directory. Any good way to do that
> > > and not losing any history?
> >
> > $ mv subB sub
> > $ git add sub
> > $ git update-index --force-remove subB
> > $ git commit
> >
> > Which history were you afraid of losing?
> >
> I want to keep the history of the submodule
Provided you do not kill the repository of the submodule (you have some
public repo for that, right?) you will not lose anything, since the
history of the superproject has pointers to the submodule.
But I guess that you want something different... You probably want to
rewrite history as if the submodule had not been a submodule at all,
right?
Ciao,
Dscho
next prev parent reply other threads:[~2007-11-15 6:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-14 14:37 How to change a submodue as a subdirectory? Ping Yin
2007-11-14 20:26 ` Alex Riesen
2007-11-15 5:36 ` Ping Yin
2007-11-15 6:16 ` Johannes Schindelin [this message]
2007-11-15 8:14 ` Ping Yin
2007-11-15 12:28 ` Johannes Schindelin
2007-11-15 16:41 ` Ping Yin
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=Pine.LNX.4.64.0711150614380.4362@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=pkufranky@gmail.com \
--cc=raa.lkml@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).