You can automate finding the common ancestor using git merge-base
and that to the tip of your branch:
$ git diff `git merge-base master topic` topic
Or simply use git diff
's dot-notation for "Comparing branches" to view changes that occurred on the topic
branch since when it was started of the master
branch:
$ git diff master...topic