Update the tips to the new state
the remote to update
callback to run on each ref update. 'a' is the old value, 'b' is then new value