Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Manuel Reimer <Manuel.Spam@nurfuerspam.de>
Cc: git@vger.kernel.org
Subject: Re: Correct way to pull using subtree merge without guesswork?
Date: Tue, 24 Jan 2012 10:27:01 -0800	[thread overview]
Message-ID: <7vy5sx2byi.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <jfmr88$1p8$1@dough.gmane.org> (Manuel Reimer's message of "Tue, 24 Jan 2012 18:49:19 +0100")

Manuel Reimer <Manuel.Spam@nurfuerspam.de> writes:

> git pull -s subtree -X subtree=path/to/subtree externalproject master
>
> Returns with success, but is "-X subtree=" the right way to force a
> subtree path and disallow git to autodetect the subtree?

More or less. Note that with the syntax, you cannot still express the
distinction between mapping the root of external to path/to/subtree of
your current tree and mapping the other way around, but that is not an
issue in practice.

By the way, I had an impression that "-X subtree" makes "-s subtree"
redundant and unnecessary.

      reply	other threads:[~2012-01-24 18:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24 17:49 Correct way to pull using subtree merge without guesswork? Manuel Reimer
2012-01-24 18:27 ` Junio C Hamano [this message]

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=7vy5sx2byi.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=Manuel.Spam@nurfuerspam.de \
    --cc=git@vger.kernel.org \
    /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