* Checkout of orphan branch files into mainline worktree
@ 2010-03-25 10:39 Gianluca Pacchiella
2010-03-25 11:10 ` Santi Béjar
0 siblings, 1 reply; 2+ messages in thread
From: Gianluca Pacchiella @ 2010-03-25 10:39 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Checkout of orphan branch files into mainline worktree
2010-03-25 10:39 Checkout of orphan branch files into mainline worktree Gianluca Pacchiella
@ 2010-03-25 11:10 ` Santi Béjar
0 siblings, 0 replies; 2+ messages in thread
From: Santi Béjar @ 2010-03-25 11:10 UTC (permalink / raw)
To: Gianluca Pacchiella; +Cc: git
On Thu, Mar 25, 2010 at 11:39 AM, Gianluca Pacchiella
<gianluca.pacchiella@ktln2.org> wrote:
> 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?
I don´t know if this is a good idea in general, but you could get the
same result with:
git merge --no-commit index &&
git reset deploy
HTH,
Santi
>
> Thanks,
> Gianluca
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-25 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 10:39 Checkout of orphan branch files into mainline worktree Gianluca Pacchiella
2010-03-25 11:10 ` Santi Béjar
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).