git ls-creators: support trivial caching