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

When I first encountered this behavior on BitBucket, I spent a lot of time reading the man pages and searching the internet trying to find out which option were they providing to `git diff` to get this diff output but couldn't find anything. Looks like there is indeed no such option. It would be awesome if git had something like `git diff branch-name --merge-commit-diff`.


One of the Bitbucket engineers put a one-liner in the comments on the post that will generate diff-like output similar to what you're describing: https://developer.atlassian.com/blog/2015/01/a-better-pull-r...


Yup, that was me who asked the question there. :-)




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

Search: