APISonar


org.netbeans.modules.git.client.GitClient.log

> org > netbeans > modules > git > client > GitClient > log
org APIs netbeans APIs modules APIs git APIs client APIs GitClient APIs log APIs

Example 1
private static GitHookContext.LogEntry[] getEntries (GitClient client, String revisionFrom, String revisionTo,
            ProgressMonitor pm) throws GitException {
        SearchCriteria crit = new SearchCriteria();
        crit.setRevisionFrom(revisionFrom);
        crit.setRevisionTo(revisionTo);
        GitRevisionInfo[] log = client.log(crit, false, pm);
        return convertToEntries(log);
    }
Example 2
List<RepositoryRevision> search (int limit, GitClient client, ProgressMonitor monitor) throws GitException {
        sc.setLimit(limit);
        List<RepositoryRevision> retval = Collections.<RepositoryRevision>emptyList();
        GitRevisionInfo[] messages = client.log(sc, true, monitor);
        if (!monitor.isCanceled()) {
            RepositoryInfo info = RepositoryInfo.getInstance(getRepositoryRoot());
            retval = appendResults(messages, info.getBranches().values(), info.getTags().values(), monitor);
        }
        return retval;
    }