Questions tagged [subtree]

172 questions
4
votes
2 answers

svn subtree, update from one repo, commit to other

A have a big project in a SVN repository. I would like to use some modules of the project in other applications, so I thought about checkout them from my main SVN repository so I can keep my code updated. How can I "export" one folder / module of my…
brpaz
  • 3,618
  • 9
  • 48
  • 75
4
votes
3 answers

Git subtree push always fails

Trying to use git subtree to share common library files across multiple projects. Here's the problem I keep encountering. 1) Add subtree so "lib" subdirectory of my project is coming from lib-dk repository. $ git subtree add --prefix=lib --squash…
user722302
  • 63
  • 5
4
votes
4 answers

Can XPath do a foreign key lookup across two subtrees of an XML?

Say I have the following XML... ...what would the…
dacracot
  • 22,002
  • 26
  • 104
  • 152
4
votes
2 answers

Partial subtree-matching algorithm

I searched the forums but I couldn't figure it out if the other similar questions are necessarily related to this one. What I'm trying to do is match a subtree to a tree of objects. I know there are pattern matching algorithms based on suffix trees…
Bogdan B
  • 485
  • 5
  • 15
4
votes
3 answers

Using subtree-merge strategy, history is not merging

I'm trying to use an external SVN repository as a subtree in my repository by 'subtree-merging' it in. I believe that this should keep the history of the files in the library intact, but it's not working - the files from the library that are merged…
th_in_gs
  • 539
  • 4
  • 15
3
votes
1 answer

How can I apply a patch to a git subtree merge?

I added a subproject to a git repository by doing a subtree merge. I now need to apply a patch to the subproject, but running "git apply -v patch_name.patch" returns nothing. There's no error message and none of the files get changed either. I've…
Matt V.
  • 9,703
  • 10
  • 35
  • 56
3
votes
1 answer

Select root node from subtree (PostgreSQL ltree) query, which returns several descendants

Is there a simple way to select the root node of a subtree (PostgreSQL ltree) from a query which returns (potentially) several descendant nodes of that same subtree? I've implemented a rather verbose algorithm for achieving the task (~40 lines,…
Dylon
  • 1,730
  • 15
  • 14
3
votes
1 answer

Git push subtree fail unknown revision or path possibly due to missing git-subtree-split commit

I have been using git subtree to embed a repo within a folder of our main project. I am not sure what has happened, but pushing the subtree now fails to update the remote repo. The command I use to push is: git subtree push --prefix themes/natra…
3
votes
3 answers

git subtree cache exists

I started to using subtree but ended in mess now. Googling and the man page didn't help that I can find out how to solve this error. Anyone an idea? Repo: https://github.com/Azd325/gitkraken OS: macOS 11.5.1 git: git version 2.32.0 Error: ➜ git…
Azd325
  • 5,752
  • 5
  • 34
  • 57
3
votes
0 answers

Git Subtrees: Refusing to Merge Un-related histories

I have a master repository with different subfolders. Each subfolder is brought into the repository as a "subtree" and exists as separate Git repository. For example: projectroot/my-subtree …
Brian
  • 6,910
  • 8
  • 44
  • 82
3
votes
3 answers

Minimum subtree containing nodes from set

There is a tree structure, e.g. 1 / \ / \ 2 3 | / \ | / \ 4 5 6 and set of nodes (leafs), that must be in subtree, e.g. [5, 6] How to find minimum subtree that contains all these nodes and begins from root element? Like…
mankers
  • 742
  • 10
  • 19
3
votes
1 answer

"submodules" in git: braid or subtree or something else

To include a few external git repositories in my "main" repository, there are a few options: submodules braid subtree The first seems to be advised against by basically everybody. The second and third I believe are implementations of the subtree…
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
3
votes
1 answer

Matching subtree recursively in Neo4j

I'm using Neo4j, and I consider myself quite a newbie, and I don't really understand how I can select a subtree of my graph. I've found solutions using the shortestPath and allShortestPaths but that's not really the same thing as selecting a whole…
Victor Axelsson
  • 1,420
  • 1
  • 15
  • 32
3
votes
2 answers

Sub-directory into independent repository and later merge back into main repository

I want to create independent repository out of a sub-directory of an existing git repository and later be capable to merge it back to main repository. Basically I want to separate one sub-directory of a monolithic git repository for specific work…
ilvez
  • 1,235
  • 3
  • 16
  • 27
3
votes
1 answer

How can I git subtree a subdirectory of the remote?

There's a remote repository with multiple subdirectories (lib/Android and lib/iOS). Is it possible for me to only subtree in lib/Android?
fobbymaster
  • 1,406
  • 3
  • 14
  • 22
1 2
3
11 12