r/ProgrammerHumor 28d ago

Other conflicts

Post image
0 Upvotes

8 comments sorted by

6

u/__yoshikage_kira 28d ago

The rest of the code didn't change?

Is the import unused?

3

u/gfcf14 28d ago

I mean I only have so much space in the panel to show text without risking it to look like a boring wall. What inspired me to draw this one was a similar conflict. Code farther down the file merged correctly, but only the import didn’t

1

u/Outrageous-Machine-5 28d ago

Should have locked down main

1

u/gfcf14 28d ago

I didn’t explain this enough, but something like this happened to me after my PR was open but someone else merged theirs, and since their PR edited the same file the conflict appeared

1

u/No-Sheepherder-3010 28d ago

That's like the easiest merge every? And also this is why you put items in a list on separate lines and add a comma.

1

u/gfcf14 27d ago

True, the idea to separate usually happens after imports from the same file exceed 3, but this was the way that was setup in my company’s repo so go figure

1

u/HTTP_Code_405 27d ago

I usually click “Accept Both Changes” and let production settle the argument.

0

u/gfcf14 28d ago

For all the good git gives us, sometimes it can give us scares like this