In certain cases, eg. after a rebase, or when patches are stacked, the "ahead/behind" and/or the diff stats can be wrong. This fixes it.