Remove prior branch base for cached diff after resetboring


This should be testing whether anything is staged to commit; testing
against the prior branch would give the wrong result if there were an
existing commit on the branch.

Change-Id: I925a1ec48097b9811e0ee2309f20a73782112260
Reviewed-by: Audun Sutterud <audun.sutterud@qt.io>
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
commite8dc594693f3eed02a5ae4da9c3409ed5c44208e
parentfb67b6f058ed106d9f0ae58dc627947dc9ebabd4
authorEdward Welbourne <edward.welbourne@qt.io>
committerEdward Welbourne <edward.welbourne@qt.io>
commit timeTue, 13 Jun 2023 13:53:36 +0200