ggc: prune fetched refs more aggressively


keep only refs which are not older than the ones reachable from the
pushed revision of each still active change. this has the biggest impact
after gpush --rebase'ing a partially integrated series (which one
shouldn't do unless necessary, but anyway).

Change-Id: I2cf26aeca997f24da6747bf588eeb24c424b7af4
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit6e9fa2d3ef35a5406fa9785d3d585ea5fb0b5d67
parente211a3ec5992f0e996664264fcfaf139c0d97228
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>
commit timeTue, 18 May 2021 11:02:50 +0000