/** * Computes and returns the repository statistics. * * @return the repository statistics * @throws org.eclipse.jgit.api.errors.GitAPIException * thrown if the repository statistics cannot be computed * @since 3.0 */ public Properties getStatistics() throws GitAPIException { try { if (repo instanceof FileRepository) { GC gc = new GC((FileRepository) repo); return toProperties(gc.getStatistics()); } else { return new Properties(); } } catch (IOException e) { throw new JGitInternalException( JGitText.get().couldNotGetRepoStatistics, e); } }
return toProperties(gc.getStatistics()); } catch (ParseException e) { throw new JGitInternalException(JGitText.get().gcFailed, e);
/** * Computes and returns the repository statistics. * * @return the repository statistics * @throws org.eclipse.jgit.api.errors.GitAPIException * thrown if the repository statistics cannot be computed * @since 3.0 */ public Properties getStatistics() throws GitAPIException { try { if (repo instanceof FileRepository) { GC gc = new GC((FileRepository) repo); return toProperties(gc.getStatistics()); } else { return new Properties(); } } catch (IOException e) { throw new JGitInternalException( JGitText.get().couldNotGetRepoStatistics, e); } }
/** * Computes and returns the repository statistics. * * @return the repository statistics * @throws GitAPIException * thrown if the repository statistics cannot be computed * @since 3.0 */ public Properties getStatistics() throws GitAPIException { try { if (repo instanceof FileRepository) { GC gc = new GC((FileRepository) repo); return toProperties(gc.getStatistics()); } else { return new Properties(); } } catch (IOException e) { throw new JGitInternalException( JGitText.get().couldNotGetRepoStatistics, e); } }
return toProperties(gc.getStatistics()); } catch (ParseException e) { throw new JGitInternalException(JGitText.get().gcFailed, e);
return toProperties(gc.getStatistics()); } catch (ParseException e) { throw new JGitInternalException(JGitText.get().gcFailed, e);