java/kudu-client/src/test/java/org/apache/kudu/client/TestUtils.java
private static File findParentGitDir(File dir) {
    while (dir != null) {
      if (new File(dir, ".git").exists()) {
        return dir;
      }
      dir = dir.getParentFile();
    }
    return null;
  }
/**
   * Find the nearest directory up in the path hierarchy that is a git source directory.
   */
Find the nearest directory up in the path hierarchy that is a git source directory.
Find the nearest directory up in the path hierarchy that is a git source directory .
private static File findParentGitDir(File dir) {
    while (dir != null) {
      if (new File(dir, ".git").exists()) {
        return dir;
      }
      dir = dir.getParentFile();
    }
    return null;
  }
private static File findParentGitDir ( File dir ) { while ( dir != null ) { if ( new File ( dir , ".git" ) . exists ( ) ) { return dir ; } dir = dir . getParentFile ( ) ; } return null ; }
Find the nearest directory up in the path hierarchy that is a git source directory.
Find the nearest directory up in the path hierarchy that is a git source directory .