Hacker News new | ask | show | jobs
by maccard 20 days ago
> The number of times I had to copy things out of the way, work in a local copy and then copy the file back

Could you not shelve?

The only _real_ footgun that I hit on the semi regular is that if a changelist is only deleted files, getting the head revision number is slightly difficult. This also applies to an undo of an add. But this is only a problem for people scripting p4.

> If your architecture is siloed by contributor and you are using perforce’s limits instead of code reviews / pull requests to constrain your workflow

I’m not really sure what you mean here, sorry. P4 has had a “fine” review tool (swarm) for years and years - it’s on par with if not slightly better than the GH PR view. IDEs (well jetbrains at least) have excellent integrations that let you review in editor.

> But practically if you are engineered the way it sounds like you are, the reality is you probably would spend almost no time resolving merge conflicts.

By design git will have more merge(s). You force the resolution of the branches to merge time, and branches are mandatory. Deciding how you resolve that (merge vs rebase vs squash) is something that I don’t ever particularly want to have to explain to someone who just wants to update a small PR, but it’s effectively required to understand, and you require everyone who works on your project to understand the differences. My gut also says if I asked around the last team I worked with that used git, I’d get about 50% correct answers.

1 comments

I had to consult the archives to answer because I haven’t tracked perforce’s development much. Neither shelve nor swarm existed until years after I switched to git.