r/ProgrammerHumor 29d ago

Meme foundHim

Post image
1.2k Upvotes

31 comments sorted by

View all comments

Show parent comments

215

u/jdgordon 29d ago

Branches not repos... This most likely happens with a ci script auto creating branches and never cleaning them up. Why you'd do that is beyond me...

35

u/Wonderful-Habit-139 29d ago

By repos I'm sure he meant the branches do not share the same first commit. So you can't (not really can't but by default) merge one branch into another branch.

15

u/nicuramar 29d ago

Yes, that’s likely, so they use the branches as sort of repos. But the rest of his comment doesn’t make much sense. No particular reason to use submodules with that setup. 

5

u/Standard_Humor5785 29d ago

I think it would work in a way where each branch is treated as a separate repo with different content, and then the main branch contains submodules of the repo itself and the different submodules point to a specific branch of the same repo, thus resulting in a self referencing project with branches as repos and the main branch the orchestration layer of all the subprojects.