@@ -52,6 +52,12 @@ useful elsewhere, you can extract its entire history and publish
52
52
that as its own git repository, without accidentally
53
53
intermingling the history of your application project.
54
54
55
+ Although the relationship between subtree and mainline commits is stored
56
+ in regular git history, it is also cached between subtree runs. In most
57
+ cases this is merely a performance improvement, but for projects with
58
+ large and complex histories the cache can be manipulated directly
59
+ with the use, ignore and map commands.
60
+
55
61
[TIP]
56
62
In order to keep your commit messages clean, we recommend that
57
63
people split their commits between the subtrees and the main
@@ -120,6 +126,21 @@ and friends will work as expected.
120
126
Note that if you use '--squash' when you merge, you should usually not
121
127
just '--rejoin' when you split.
122
128
129
+ ignore::
130
+ Mark a commit and all of its history as irrelevant to subtree split.
131
+ In most cases this would be handled automatically based on metadata
132
+ from subtree join commits. Intended for improving performance on
133
+ extremely large repos and excluding complex history that turns out
134
+ to be otherwise problematic.
135
+
136
+ use::
137
+ Mark a commit and all of its history as part of an existing subtree.
138
+ In normal circumstances this would be handled based on the metadata
139
+ from the subtree join commit. Similar to the --onto option of split.
140
+
141
+ map::
142
+ Manually override the normal output of split for a particular commit.
143
+ Extreme flexibility for advanced troubleshooting purposes only.
123
144
124
145
OPTIONS
125
146
-------
@@ -142,6 +163,9 @@ OPTIONS
142
163
This option is only valid for add, merge and pull (unsure).
143
164
Specify <message> as the commit message for the merge commit.
144
165
166
+ --clear-cache::
167
+ Reset the subtree cache and recalculate all subtree mappings from the
168
+ commit history
145
169
146
170
OPTIONS FOR add, merge, push, pull
147
171
----------------------------------
0 commit comments