Search in sources :

Example 1 with SymbolicRef

use of org.eclipse.jgit.lib.SymbolicRef in project gerrit by GerritCodeReview.

the class VisibleRefFilter method addUsersSelfSymref.

private Map<String, Ref> addUsersSelfSymref(Map<String, Ref> refs) {
    if (projectCtl.getUser().isIdentifiedUser()) {
        Ref r = refs.get(RefNames.refsUsers(projectCtl.getUser().getAccountId()));
        if (r != null) {
            SymbolicRef s = new SymbolicRef(REFS_USERS_SELF, r);
            refs = new HashMap<>(refs);
            refs.put(s.getName(), s);
        }
    }
    return refs;
}
Also used : SymbolicRef(org.eclipse.jgit.lib.SymbolicRef) Ref(org.eclipse.jgit.lib.Ref) SymbolicRef(org.eclipse.jgit.lib.SymbolicRef)

Aggregations

Ref (org.eclipse.jgit.lib.Ref)1 SymbolicRef (org.eclipse.jgit.lib.SymbolicRef)1