Re: How to change a submodue as a subdirectory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, 15 Nov 2007, Ping Yin wrote:

> On Nov 15, 2007 4:26 AM, Alex Riesen <raa.lkml@xxxxxxxxx> 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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux