git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gianluca Pacchiella <gianluca.pacchiella@ktln2.org>
To: git@vger.kernel.org
Subject: Checkout of orphan branch files into mainline worktree
Date: Thu, 25 Mar 2010 11:39:42 +0100	[thread overview]
Message-ID: <hofehl$jbn$1@dough.gmane.org> (raw)

Hi folks,

I have a repository where I maintain a project for a web site with a branch
(disconnected from the mainline history) that contains some files
(necessary only for a particular instance of a site) that don't intersect
with others files in the main project. Since I don't want to use submodule
and subtree I manage myself to this sequence of commands ("deploy" is the
branch name of the mainline history and "index" of the --orphan branch) to
checkout the index's files into the mainline files

git read-tree index && ( git ls-files --with-tree=index | git
checkout-index --stdin ) && git read-tree deploy

Are there some other ways to do this? I'm crazy? are there side effects?

Thanks,
	Gianluca

             reply	other threads:[~2010-03-25 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25 10:39 Gianluca Pacchiella [this message]
2010-03-25 11:10 ` Checkout of orphan branch files into mainline worktree Santi Béjar

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='hofehl$jbn$1@dough.gmane.org' \
    --to=gianluca.pacchiella@ktln2.org \
    --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;
as well as URLs for NNTP newsgroup(s).