Re:Show HN: `Git add -p` with multiple buckets
by austinjp on Sunday March 20, 2022 @06:40AM
(#30741574)
I didn't know about git delta, thanks for this. Presumably your referring to https://github.com/dandavison/delta ?
Does anyone have any tips for integrating it into an emacs workflow? I'm currently doing `git commit` from shell which launches emacs-nox with magit.
Re:Show HN: `Git add -p` with multiple buckets
by spartanatreyu on Sunday March 20, 2022 @09:44PM
(#30749092)
Hmm, I haven't heard of delta before. I've been using diff-so-fancy for a while ( https://github.com/so-fancy/diff-so-fancy), but I might have to give delta a try.
Edit: It looks like this page shows the comparison between delta and diff-so-fancy: https://dandavison.github.io/delta/features.html
But after I picked up emacs again and started using magit even that became a breeze.
Also, for reviewing changes, I use the no context option `git diff -U0`and more recently use git-delta for better color highlighting and the side-by-side diff view.
I also think in addition to just having learned and practiced over a decade, the way I’ve used Git has evolved too. I keep PRs small and cohesive, always squash all their commits, and because of that I don’t have to care so much about untangling cohesive changes at commit time, although I also don’t let them pile up. I usually do a lot of `git commit --amend` and `git commit --fixup` (more and more rarely actually followed by a `git rebase --autosquash` since the PR takes care of the squash now… I don’t even have to worry about order-based conflicts anymore).