Live data from Hacker News

Extremely Linear Git History

westling.dev

21–30 of 366 posts

Re: Extremely Linear Git History

#21

I mean.. this kind of breaks down if you have more than one person on the team

It just means you have to coordinate more. Or just have one person in charge of the master branch. I don't think the post is supposed to be taken so seriously, though.

Re: Extremely Linear Git History

#25
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-...

Re: Extremely Linear Git History

#26

Earlier quoted context omitted.

That requires your programming language to identify files with modules, and with your system architecture to be extended by modules alone. This is an ideal case, of course.

I don't understand your comment. The method that I describe only requires that the programming language ignores unused files. As far as I know, all modern programming languages have this feature.

In the way most languages and applications work, a "new feature" requires modification to several existing file.s

Re: Extremely Linear Git History

#27
post #17

See also Lucky Commit [0], which uses various types of whitespace characters instead of a hash inside the commit, which makes it look more magical. I wonder about performance, though. Why is the author's method slower than the package I linked? [0]: https://github.com/not-an-aardvark/lucky-commit

Thanks for sharing, this is really cool! Using whitespace is a really clever trick, and running on the GPU makes it even more impressive.

I've been using githashcrash [1], but it's only running on the CPU, which is why it's a bit slower. :-)

[1]: https://github.com/Mattias-/githashcrash

Post reply on HN