Commit a7aaedf
committed
subtree: more robustly distinguish subtree and mainline commits
Prevent a mainline commit without $dir being treated as a subtree
commit and pulling in the entire mainline history. Any valid subtree
commit will have only valid subtree commits as parents, which will be
unchanged by check_parents.
Signed-off-by: Tom Clarkson <[email protected]>1 parent 2d10329 commit a7aaedf
1 file changed
+11
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | 227 | | |
230 | 228 | | |
231 | 229 | | |
| |||
255 | 253 | | |
256 | 254 | | |
257 | 255 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 256 | + | |
| 257 | + | |
263 | 258 | | |
264 | 259 | | |
265 | 260 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | 261 | | |
271 | 262 | | |
272 | 263 | | |
| |||
719 | 710 | | |
720 | 711 | | |
721 | 712 | | |
722 | | - | |
723 | 713 | | |
724 | 714 | | |
725 | | - | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
726 | 723 | | |
| 724 | + | |
727 | 725 | | |
728 | 726 | | |
729 | 727 | | |
| |||
0 commit comments