threads / discuss / 66952

[Question] vendor branching within the Git project?

Subject: [Question] vendor branching within the Git project?

## tl;dr

A newcomer asks whether Git has weighed support for vendored third-party code beyond git subtree and submodules. Read the story.

replies: 0people: 1as markdown or json

Alexander Duytschaever· Nov 29, 2026, 16:41 UTC · lore
Hello,

In Documentation/technical/unit-tests.adoc [1] I find this phrase: "... we can copy their source directly into Git's repository) ...". I assume the vendor branching pattern has been considered but I don't see any in Git.

1/ Has it ever been considered?

2/ Is there any intention to support the concept at a deeper level, beyond "git subtree"? IMHO many projects hit the question "how to I version external content?" and often "the copy-paste solution" is adopted, while the vendor branch approach might improve things. Submodules might work for vendors that use Git, but how to deal with "alien" vendors?

I have a feeling that vendor branching is a fundamental concept that all VCS face; and after CVS (which has explicit support for VB) it feels like the concept has been dropped. I've tried to get a better view at [2], for the interested (feedback welcome).

3/ At the same time, it feels like VB cannot be used in other than small/trivial projects. (Anyone an idea where it is used in a larger project?)

thx
-alex-

[1] https://github.com/git/git/blob/acba8bf9753134d9bde89f94369f775838a8c5fe/Documentation/technical/unit-tests.adoc?plain=1#L92-L94 [2] https://github.com/axd1967/vendor-branching/blob/master/NOTES.md#fundamental-vcs-issue

← back to recent threads