| > This would mean that you're changing already pushed commits, leading to mutable shared state, which is also not a desirable situation. A PR is a temporary container, and those commits there are in no meaningful sense "published" so they should be considered mutable. > If it is okay to have poorly built commits because you can fix them after code review Nowhere did I say that. Commits should be of very good quality, but there are diminishing results from putting safeguards over safeguards into the CI/CD logic: some qualities, like the conceptual integrity of a commit, should be enforced through review not code (CI/CD checks). > stashing/shelving as a concept already does what you want a staging area to accomplish No no no. I want to keep my local state while selecting a subset of those changes to be sent to the server for testing. Stashing destroys that, I never want it. > In general, the "backing up the modified files somewhere" was made unnecessary in most version control systems a long time ago. Actually it wasn't. I want my local state to be kept exactly as it is, in an uncommitted limbo, and the only VCS I've encountered that fixes that from the points of view of safety, clarity and ergonomy is Google's Piper with its SrcFS local component. > Doing this at the file system level is also not really adequate. It is, and I'll point again to Piper: every compilation attempt and every time one updates a Piper Changelist results in a named (numbered) snapshot that can be used in Critique (the UI) for comparison, either as NEW or OLD state. It's very sophisticated and works marvellously. |