Patch Set 1: Looks good to me, approved; IP review completed

Good idea.

Stylistically, I would have pulled the current code into a new private method, and done something like:

  if (!gitPrefixEvaluated) {
    gitPrefix = theNewPrefixHelperMethod();
    gitPrefixEvaluated;
  }