Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Slight tangent: you want to read the diff between your branch and the merge-base with origin/main. Otherwise you get lots of spurious spam in your diff, if main moved since you branched off.


In jj this is jj diff -f ‘fork_point(trunk() | @)’. I have an alias for it.


What's jj? In Git I also have an alias for diffing against the merge-base. (It's also what GitHub gives you by default in the webview.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: