public boolean isBranchFile(String filePath){
  return filePath.startsWith(myRefsHeadsDirPath);
}

public boolean isBranchFile ( String filePath ) { return filePath . startsWith ( myRefsHeadsDirPath ) ; }
any file in . git / refs / heads , i . e . a branch reference file .
