r/ProgrammerHumor • • 23h ago

Meme gitPushOriginPlssssMakeNoMistakes

Post image
4.7k Upvotes

339 comments sorted by

View all comments

Show parent comment

17

u/trafalmadorianistic 22h ago

Fuck, I still don't trust AI with merge conflicts. How's the experience been for you. What agents used? 

20

u/Rasutoerikusa 21h ago

I stopped handling thel manually after i noticed that agents literally make way less mistakes in merges than I do manually. With the latest models I've had 100% success rate in resolving conflicts with agents only. Now I no longer trust myself in doing the manual merges other than testing the end product

9

u/AnEvanAppeared 21h ago

A non-trivial merge conflict resolution is very time consuming. I feel like a lot of devs don't put the time necessary to pull up the full diff of both changes to make sure you've got it all correct.

I've watched some of my team resolve conflicts before and I do have to say, I would rather have AI resolve conflicts rather than the approach of looking at the code and making a good guess at which goes in.

4

u/trylist 18h ago

It's one of the more difficult parts of software dev for sure. You have to understand not just the syntax but the intentions of everything that was written. It takes a lot of experience to get there, and it's especially difficult because often you need to keep in mind context spread across files from two different units of work. Its hard enough to do that when its just your own work. Add in the fact that it's entirely possible to get something that works but subtly changes behavior, very stressful. Hope you have good tests.

Although most of the time it's pretty simple if you just make sure people aren't working in the same area of the code at the same time. So the conflicts are incidental and not structural.

1

u/trafalmadorianistic 12h ago

Ideally you'd also just be combining  unit tests for those pieces of code, but when they're covering the same area... what a headache. 

1

u/trafalmadorianistic 12h ago

I mean merging should be a matter of knowing what should go in, not guesswork. At least if changes are all in the same repo you'd have a better grasp of the whole picture. 

1

u/vulkur 22h ago

If the AI has all the facts accessible to it, its very rare it will fuck up. More context the better

0

u/Ziiiiik 22h ago

Frontier Google models. I just let it code and review and push for me at this point

0

u/danielv123 22h ago

I can't remember the last time a model screwed up a merge

0

u/dcheesi 20h ago

I only tried it once so far. I had Claude do it (in a few minutes), and then did a manual merge on another branch (which took most of a an afternoon). No mistakes on Claude's part, although it made different choices with a couple judgement call cases. Not worse, just different.

1

u/trafalmadorianistic 12h ago

Interesting! But did the judgment calls have functional/ structural impact, or mainly stylistic. 

2

u/dcheesi 12h ago

Style, I guess. Adding fields to a console output, which ones go before or after

0

u/scriptmonkey420 16h ago

Google antigravity has done very well at fixing merge conflicts on a repo for a project I was working on. No loss of code and it was working.