Questions tagged [subtree]
172 questions
9
votes
2 answers
How to restrict a function to a subtree in emacs org-mode?
I am using org-mode and org-attach extensively which means that
there can be many attachment directories associated with one org file.
On worg I found a function from Matt Lundi which allows to see all
attachments that belong to the whole file and…

Otto Pichlhoefer
- 254
- 2
- 8
8
votes
3 answers
Git subtree not properly using .gitignore when doing a partial clone
I am a graduate student with many scripts, bibliography data in bibtex, thesis draft in latex, presentations in open office, posters in scribus, and figures and result data. I would like to put everything in one project under version control. Then…

D W
- 2,979
- 4
- 34
- 45
8
votes
1 answer
Using git subtree merging, while also merging in all branches of all merged subtrees
I'd like to use a popular, open source issue tracker (Redmine) that offers git integration. Unfortunately, each project in the tracker can only be associated with one git repo. Creating multiple projects in the tracker is not my ideal setup.
With…

anthony
- 40,424
- 5
- 55
- 128
7
votes
1 answer
Shared Library in repository with visual studio
I'm new to Git version control. I just want each project to have its own repository.
I created
A Project(Shared Lib) in RepoA
B Project(Shared Lib) in RepoB that has subtree of A
C Project(Shared Lib) in RepoC that has subtree of A
D…

Han Eui-Jun
- 142
- 1
- 8
6
votes
1 answer
Right way to switch Git Subtree branch?
Assuming I have already added a new remote "foo", and pulled a subtree, squashed, with branch master.
$ git remote add -f foo some-repo.git
$ git subtree add --prefix=foo --squash foo master
From the articles I have read (here, and here, etc), this…

jmar
- 452
- 2
- 14
6
votes
3 answers
Git subtree tags
I want to use subtree merges to pull a remote project into a directory in my own git tree. I followed the instructions here:
using subtree merge
But I'm not sure how to checkout a tag. I imagine this is a common request - you want to pull in an…

cmaughan
- 2,596
- 5
- 30
- 35
5
votes
1 answer
How does git find subtree, when we use subree merging strategy?
How does git find subtree, when we use subtree merging strategy? I find only one mention here: "It actually guesses the subtrees that you want to merge. Usually, this magically turns out to be correct, but if your subtree contains a lot of changes…

dashaaa
- 51
- 3
4
votes
1 answer
subtree with networkX
In networkX, I have a tree as DiGraph().
#!/usr/bin/python
# -*- coding: utf-8 -*-
import networkx as nx
t = nx.DiGraph()
t.add_edge(1,'r')
t.add_edge(2,'r')
t.add_edge(3,'r')
t.add_edge(4,2)
t.add_edge(5,2)
t.add_edge(6,5)
print t.edges()
If a…

JuanPablo
- 23,792
- 39
- 118
- 164
4
votes
2 answers
Using Git, what's the best way to subtree merge an external project that has submodules?
I'm using a Git repository for everything related to a website I'm developing. The repository holds all files related to the site, including documentation, mockups, original layered images, etc. as well as the web root stuff that I've put in a www…

Calrion
- 3,202
- 1
- 28
- 30
4
votes
2 answers
How to merge/pull from remote repository
I'm trying to merge a few subdirectories from a remote git repository to my repository. Both Remote and Local Repositories include the whole kernel repository and I'm interested only in the wireless relevant files.
I tried to follow the instructions…

Nisim
- 41
- 2
4
votes
2 answers
Git subtree merge strategy, possible without merging history?
I've been trying to move away from submodules in order to get a self-contained repository, and the subtree merge strategy seems to match this use-case.
However the merged repos' histories appear in my own project's history, which is reather…

julien
- 1,879
- 2
- 20
- 29
4
votes
2 answers
Find if the first tree is a subset of the second tree
I checked all around the internet to find out how to check if a tree is a subSet of another. By subset, I mean The issubset function should return 1 if all the elements of the first tree appear in the second tree
and 0 otherwise. Note that depending…

Eduardo Juarez
- 61
- 6
4
votes
3 answers
How to change the source of a Git subtree merge
I have a project where I've merged in a library using Git subtree. I've pushed and pulled a few minor changes between the library and the project.
Later on, a new repository has been created which is the definitive home for the library. It contains…

Sam Deane
- 1,553
- 1
- 13
- 17
4
votes
2 answers
TinyXML Iterating over a Subtree
Does anyone have code to iterate through the nodes of a subtree in TinyXML? IE: Given a parent, iterate through all its children and all of its children's children?

Raindog
- 1,468
- 3
- 14
- 28
4
votes
1 answer
Push to a remote origin on a subfolder of git repository?
I have a git repository which uses Vagrant to build a virtual server for a WordPress project (local development only). The folder structure is roughly as follows (for the purposes of the question).
- Vagrantfile
- puppet/
- wordpress/
- {www…

alexmcfarlane
- 1,016
- 2
- 13
- 33