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

umm... but why can't you just create a new branch, cherry-pick all the relevant commit then diff the result with the "base"?


I'd suggest: Because creating a new branch just for a one-off look at some diffs seems kinda heavyweight, and because it requires several separate operations in order to do a single thing.


branch in git are not really heavyweight, look at for example at mercurial ones and why the pypy team prefer them [0]

moreover I think this approach could be at least "scriptable", if not aliasable

.. [0]: https://doc.pypy.org/en/latest/faq.html#why-doesn-t-pypy-use...


What do you do when there's conflicts?


Then the desired diff does not exist.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: