|
|
|
|
|
by ragall
8 days ago
|
|
> With the staging area, you don't even know if the commit builds if you commit selectively You should always use server-side CICD. > and manual adding is error-prone That's a UI problem. I've been manually selecting code with Magit for years and it's very effective. |
|
First, server-side CI is usually only running for the last commit, so if you have a series of commits pushed at once, this doesn't really help.
Second, it's not even so much about the validating a commit (which, for intermediate steps, it might not do), but so that each commit hangs together and a change as a logical unit doesn't exist partly in one and partly in another commit [1].
Conceptually, the whole staging process flies in the face of the idea that a commit should represent an atomic repo change and feels more CVS-like.
> That's a UI problem. I've been manually selecting code with Magit for years and it's very effective.
There are two counterpoints I would like to make here. One is that if you need additional tooling to work around a problem in an existing tool, that does not mean the original tool does not have a problem.
The other is that better tooling does not mean that the increased error rate from unnecessary manual steps goes away; it can mitigate it, but it does not do away with the consequences of e.g. inadvertent lapses of attention.
And realistically, in most cases it is just unnecessary extra work for no good reason.
[1] Mind you, there's the problem that commits are really used for two different things, one is to capture conceptual steps and one is to to do quick save of the repo state, and no existing VCS does a good job of reconciling these two different purposes.