Git-appraise – Distributed Code Review for Git
I have this "one weird trick" that I think is great, but somehow no-one else wants to use:At one point I worked with a fellow dev where we did PR reviews just as commits on top of the branch. So you'd check out their feature branch, run the equivalent of 'compare working tree with ' for your editor and then look through the changes.Because you're comparing the working tree you can leave comments... by typing source code comments (we used '// RVW(jauco)' to mark them). You can fix typo's just by, well, fixing the typo and you share the review by pushing to the branch.I found it to have the following advantages- PR comments usually break when you rebase or merge (because they reference a line number). These obviously won't, at worst there will be a merge conflict that you handle the obvious way.- If your PR comment requests explanation then the answer needs to be moved from the PR to the codebase, for future use. Writing comments in code means that you just need to clean up the conversation into a comment (or you can just leave it)- You can use a proper text editor for writing the comments- You can use code navigation while reading the changes (like, go to definition etc)- Because of these the review gets a more active feel. You're more inclined to engage with the code rather then just reading it while leaning back in your chairHowever, people tend to look at me like I'm crazy for suggesting something like this. OTOH tools like this look completely crazy to me. Why do all this work to get a worse version of something you already have?