vendor-branching

Do your colleagues know the concept?

The test is small and should not take much time. The idea is to find out how well the concept is known.

Submit following situation.

  1. Imagine you are publishing articles as Markdown pages. The pages are versioned with your favourite VCS.
  2. A colleague later likes that idea and also starts publishing articles elsewhere, but uses a different VCS.
  3. Assume that both you and your colleague will continue modifying your respective pages independently.
  4. You notice a page of your colleague that you like, so you copy it.
  5. Then you notice typos and correct them.
  6. And later, your colleague adds interesting content to his/her page.

Now the question is: you want to incorporate your colleague's new content while retaining your own corrections. How would you approach this?

The colleague should be able to explain that

  1. a branch is used to track the evolving external content
  2. a merge to main branch allows to combine own as well as remote content.
  3. the main branch allows to track own modifications

The way the vendor drop is done is not relevant (even if it is not always trivial).

git submodules and git subtree could also be accepted as answers, but the concept should be understood. Ask what if subtree or submodules are not available.

Please consider filling in the anonymous survey!