4 ms·
Have you ever tried the git e-mail workflow? I think you may like it, I'd be curious to have your opinion about how it compares to your workflow above :-). The
by palata 3y ago
Have you ever tried the git e-mail workflow? I think you may like it, I'd be curious to have your opinion about how it compares to your workflow above :-).
The idea is that you just send your patch by e-mail, and the reviewer just applies it with `git am <the patch>`. So you don't even have to sync on a branch. Then the reviewer can comment directly on the patch. You answer with new versions of the patch, and get new reviews. It's minimal, actually decentralized (unlike, say, GitHub), and I believe it has the advantages of your workflow above.
Nice posts about it:
https://drewdevault.com/2018/07/02/Email-driven-git.html https://drewdevault.com/2018/07/02/Email-driven-git.html
https://drewdevault.com/2022/07/25/Code-review-with-aerc.html https://drewdevault.com/2022/07/25/Code-review-with-aerc.htm...
- palata 3y agoI'd love to know why I have been downvoted on that...
- wordpad25 3y agothe answer is in one of the first lines in your linked article "Email isn’t as sexy as GitHub"
- jauco 3y agoYou know, I never really tried that. But I will do so when the opportunity arrives!
- palata 3y agoIt is really easier than it looks! Took me a while to try it, but then I realized it's really super easy: run the git command to create the e-mail, send the e-mail, and on the reviewer side just run the command to apply it. This is a nice tutorial, too, but I would recommend reading Drew Devault's posts first (and watching his short videos): https://git-send-email.io/ https://git-send-email.io/
- worldsayshi 3y agoDon't you lose a bit of important information when you create a patch? Like which commit it started from.
- palata 3y agoYou don't send a diff, you send an e-mail formatted by git. So you get all the commits you put in it, it's really just like seeing the commits in a GitHub PR. So the reviewer receives the commits, with their descriptions, authors, everything. Just like pulling a branch, really.
- goku12 3y agoYou do lose the information about where to apply the patch. This isn't a big problem for rebase-friendly crowd. But people who prefer the merge strategy strictly may not like it.
- Corsome 3y agoAFAICS there's `--base=auto` which captures explicit parent's sha in the patch text output (there's also a git config option to do that automatically). Source: https://git-scm.com/docs/git-format-patch#_base_tree_information https://git-scm.com/docs/git-format-patch#_base_tree_informa...
- goku12 3y agoThank you for the information! This is the first time I'm hearing about it. Would you happen to know how this information is used? Is it just for the maintainer, or is there a tool that can use it? (I couldn't find any other reference)
- Corsome 3y agoLast time I checked it was only for maintainers convenience but the idea of using it by some tooling was already being discussed: https://people.kernel.org/monsieuricon/all-patches-must-include-base-commit-info https://people.kernel.org/monsieuricon/all-patches-must-incl...
- sirsuki 3y agoI have been giving this one a lot of thought. I jumped to sourcehut for my personal projects and was amazed how viscerally pleasing a [PATCH] email thread could be. I am convinced there is a big psychological difference between discussions via Pull Requests and discussions via email/mailing lists. I can’t pin point it but it is almost palpable. A question I have with the process is: can email based workflow still work with for a continuous integration/delivery pipeline?
- goku12 3y ago> A question I have with the process is: can email based workflow still work with for a continuous integration/delivery pipeline? Doesn't sourcehut already support that? (https://man.sr.ht/builds.sr.ht/ https://man.sr.ht/builds.sr.ht/)
- palata 3y ago> I jumped to sourcehut for my personal projects Same :-). I also love how people don't have to create an account to send a patch. They just need to send me an e-mail. That is not a problem on GitHub (because everybody is forced to have an account there), but it is if you want to host your repo somewhere else. > can email based workflow still work with for a continuous integration/delivery pipeline? SourceHut has a CI feature integrated with the mailing-lists: https://man.sr.ht/builds.sr.ht/ https://man.sr.ht/builds.sr.ht/
- xvilka 3y agoThe biggest drawback is the inability to use on a computer without email setup, e.g. not from the main computer, or from mobile devices - smartphone, tablet. In my case it's not uncommon to do a quick review of some PRs using this Web-based workflow. Now with newer GitHub application it's even easier.
- darau1 3y agoIt always amazes me that these large companies insist on reinventing the wheel.
- palata 3y agoBecause their wheel comes with lock-in :-)
- deleted 3y ago[deleted]