Skip to content

Commit fa2f2f1

Browse files
committed
Add instructions for git-subtree, and an update script.
1 parent 5e32c8c commit fa2f2f1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
Importing into another repository with git-subtree
2+
==================================================
3+
4+
To import the first time to a ``./css-parsing-tests`` sub-directory,
5+
run this from the top-level of a git repository::
6+
7+
git subtree add -P ./css-parsing-tests https://github.com/SimonSapin/css-parsing-tests.git master
8+
9+
Later, to merge changes made in the upstream repository, run::
10+
11+
./css-parsing-tests/update-subtree
12+
13+
114
Result representation
215
=====================
316

update-subtree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
git subtree pull -P $(dirname $0) https://github.com/SimonSapin/css-parsing-tests.git master

0 commit comments

Comments
 (0)