From: Jakub Narebski <jnareb@gmail.com>
To: picca <picca@synchrotron-soleil.Fr>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: tracking a file from another project in my own project
Date: Tue, 22 Jan 2008 07:23:28 -0800 (PST) [thread overview]
Message-ID: <m3fxwplw1i.fsf@roke.D-201> (raw)
In-Reply-To: <20080122145658.18b6ef89@synchrotron-soleil.Fr>
picca <picca@synchrotron-soleil.Fr> writes:
> On Tue, 22 Jan 2008 01:20:41 -0800
> Junio C Hamano <gitster@pobox.com> wrote:
>
> > If I were you I'd probably just keep git.git as a submodule in
> > your project and have two symlinks from your toplevel pointing
> > at git.git/strbuf.[ch] (or from src/ to ../git.git/strbuf.[ch]).
>
> So submodule is a requirement to achieved this comportment ?
If you want to have strbuf.[ch] automatically tracked from git.git
the you would have to have git.git project somehow embedded in your
repository. Using submodules is one solution.
Currently there is no way to do "sparse checkout", i.e. automatically
checkout only needed files (even if git.git clone has all the
objects), but feel free to implement it... ;-) (just kidding).
Or you can try to convince strbuf authors to make it into separate
project, which would be fetched into git.git like gitk was. And you
could then pull from this project directly or indirectly (submodule)
into your project.
> If someone want to clone my project.git, must he also clone the
> git.git project or he loose the ability to follow by it's own the
> strbuf.[ch] file ?
True.
> > Or "merge -s subtree".
>
> I read the git help merge -s explanation but I do not understand how
> it can help in my case.
Using subtree merge strategy you can join histories of your project
and git.git, embedding git.git as a subdirectory like gitk and git-gui
are now in git.git. It is an alternative to using submodules.
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2008-01-22 15:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-22 8:35 tracking a file from another project in my own project picca
2008-01-22 9:20 ` Junio C Hamano
2008-01-22 13:56 ` picca
2008-01-22 15:23 ` Jakub Narebski [this message]
2008-01-22 17:30 ` Sergei Organov
2008-01-22 18:34 ` Jakub Narebski
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=m3fxwplw1i.fsf@roke.D-201 \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=picca@synchrotron-soleil.Fr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.