From: Jeremy Rosen <jeremy.rosen@openwide.fr>
To: Paul Campbell <pcampbell@kemitix.net>
Cc: git@vger.kernel.org
Subject: Re: Questions/investigations on git-subtree and tags
Date: Thu, 7 Mar 2013 16:15:38 +0100 (CET) [thread overview]
Message-ID: <757358726.204239.1362669338484.JavaMail.root@openwide.fr> (raw)
In-Reply-To: <CALeLG_=xzL1SA0G63FGb5v8K5WQOUg4yaodNm6zwf7kU1pAYvg@mail.gmail.com>
> >
> > Ok, I can understand that you don't want to import tags for
> > namespace reason, but in that case shouldn't
> > git subtree add refuse to create a subtree when the tag isn't a
> > commit
>
> It shouldn't and tries not to, but is limited in it's ability to
> identify if a refspec points to a commit or not in the remote repo.
>
ok, i've studied a little more
* the target for "git subtree add <url> <refspec> can only be a remote branch or tag, since we git fetch
can only target remote refs.
* in case of a branch, git subtree forgets the branch and only use the commit linked to the branch. for
tags, the fetch part is ok, it's the merge part that fail. adding ^{} at the right place would probably fix that
>
> I've posted a patch (which is pending a lot of other changes to
> git-subtree that I'm corralling) that tries to prevent some obvious
> errors in the refspec. But letting the git fetch used by git-subtree
> add and git-subtree pull catch the error and report it may be the
> best
> option.
>
that's interesting... do you have a link ?
>
> I've never really tried using --squash, I don't see that it adds any
> value for me.
>
my project has a git subtree for a linux kernel and another subtree for buildroot,
a default .git is about 1.5G, squashing it reduces it to 200M so it's worth it for me :)
next prev parent reply other threads:[~2013-03-07 15:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1492019317.191838.1362650820122.JavaMail.root@openwide.fr>
2013-03-07 10:25 ` Questions/investigations on git-subtree and tags Jeremy Rosen
2013-03-07 11:00 ` Paul Campbell
2013-03-07 11:05 ` Jeremy Rosen
2013-03-07 12:02 ` Paul Campbell
2013-03-07 12:50 ` Jeremy Rosen
2013-03-07 15:00 ` Paul Campbell
2013-03-07 15:15 ` Jeremy Rosen [this message]
2013-03-07 15:29 ` Paul Campbell
2013-03-07 16:09 ` Jeremy Rosen
2013-03-08 16:29 ` Jeremy Rosen
2013-03-08 17:23 ` Junio C Hamano
2013-03-08 17:29 ` Jeremy Rosen
2013-03-12 10:02 ` Jeremy Rosen
2013-03-12 23:57 ` Paul Campbell
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=757358726.204239.1362669338484.JavaMail.root@openwide.fr \
--to=jeremy.rosen@openwide.fr \
--cc=git@vger.kernel.org \
--cc=pcampbell@kemitix.net \
/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).