only cache active branch commits in localStorage