▲ | koolba 5 days ago | |||||||
> When I review code, I like to pull the source branch locally. Then I soft-reset the code to mere base, so that the code looks as if it was written by me. This is eerily similar to how I review large changes that do not have a clear set of commits. The real problem is working with people that don’t realize that if you don’t break work down into small self contained units, everybody else is going to have to do it individually. Nobody can honestly say they can review tons of diffs to a ton of files and truly understand what they’ve reviewed. The whole is more than just the sum of the parts. | ||||||||
▲ | stitched2gethr 5 days ago | parent | next [-] | |||||||
For those that want an easy button. Here ya go. ``` review () { if [[ -n $(git status -s) ]] then echo 'must start with clean tree!' return 1 fi
}
``` | ||||||||
| ||||||||
▲ | cedws 5 days ago | parent | prev | next [-] | |||||||
Crafting good commits, and good PRs out of those commits is a skill just like how writing good code is. Unfortunately, too many people suck at the former. | ||||||||
| ||||||||
▲ | porridgeraisin 5 days ago | parent | prev | next [-] | |||||||
I use this: https://github.com/sindrets/diffview.nvim as a PR review tool in neovim. It's basically vscode's diff tool UI-wise but integrates with vim's inbuilt diff mode. Also, `git log -p --function-context` is very useful for less involved reviews. | ||||||||
▲ | aitchnyu 5 days ago | parent | prev [-] | |||||||
We were a team with highly parallizable data science tasks, we checked out 3 copies of the repo, one for our branch, two for branches where we are the reviewer. |