This summer - GIT OUT
post
Another movie pitch:
Due to management decision, a code freeze has been mandated to the main branch. 50 feature branches have accumulated waiting to be merged.
Management has now finally approved to lift the code freeze - but only for 24 hours. Will the poor engineering team manage to merge all feature branches in time?
Here's one for a TV show.
In 2022, a crack quality assurance team was made redundant by a CTO for a botched product launch they didn't commit.
These men promptly escaped from a maximally unstable job market to the LinkedIn underground.
Today, still wanted by recruiters, they survive as soldiers of fortune.
If you have a broken codebase, if no one else can help, and if you can find them, maybe you can hire the QA-team.
Is there a robust test suite?
Merge, test, merge, test, patch, merge, test
Merging all the feature branches in time is easy.
Having the project compile afterwards is hard.
Merge/test/fix on a separate branch and then merge this into main when the freeze lifts?
rm -rf *
git add -A
git commit -m "oops."
rm -rf .git
git init
git add .
git commit -m "bye."
git push origin main --force
rm-ing .git isn't gonna work cuz you'll have to re-add the remotes.
Oh good point 🤦
So maybe instead, we can clear all local + remote branches and tags, create a blank branch, delete main, rename the blank branch to main, then delete .git
Although the OP says that we can merge anything, and we might not have access to mess with branches
I'm not sure about the git history wipe, I can't test it myself right now
Unironically I think this is my only shot at getting past our code debt.
Wdym you don't like waiting 3 weeks for a code owner to approve a 1 line change?
My question would be for what time zone? That seems like an important detail
So every sane dev will just sit that day out, do nothing and then once it has all blown over one of them will hard reset main to right before the silly time started. Sounds like a chill time, but not a good plot for a movie imo.
Every repo I can suddenly has a requirement for my $1k/license addon and won't run without it.
So the equivalente to not wanting to make part of it and staying at home is setting repositories private a few hours before and only reopening the day after?
https://www.openchaos.dev/#votes is kinda similar to, but weekly instead (voted for submissions that automatically get merged)
What does "all tech debt is legal" mean?
I'm not understand , what it's mean
I am taking the network down at the office on this day. I have accidentally done it before and now I know how to do it again.
all 47 comments