4 ms·
I find tags to be a fairly useful way of providing a linear progression, but I guess that's no fun. > but it can also mean to only allow merges in one directio
by ChrisMarshallNY 4y ago
I find tags to be a fairly useful way of providing a linear progression, but I guess that's no fun.
> but it can also mean to only allow merges in one direction, from feature branches into main, never the other way around. It kind of depends on the project.
That sounds like the Mainline Model, championed by Perforce[0]. It's actually fairly sensible.
[0] https://www.perforce.com/video-tutorials/vcs/mainline-model-tofu-scale https://www.perforce.com/video-tutorials/vcs/mainline-model-...
- actuallyalys 4y agoYeah, I think tags are a more practical way of accomplishing this. If you’re really interested in having a linear history, it might also make sense to switch to an alternative. Mercurial has linear version numbers and can even push to Git repositories. At risk of coming across as a humorless Hacker News commenter, I will add that I enjoyed this post. It’s a neat hack!
- ChrisMarshallNY 4y agoYes, it is a cool hack. I enjoy these, even if I can't find a practical application.