GetAllRefs() public méthode

Gets all known refs (heads, tags, remotes).
public GetAllRefs ( ) : Ref>.Dictionary
Résultat Ref>.Dictionary
Exemple #1
0
        private bool isNameConflicting()
        {
            string myName    = Name;
            int    lastSlash = myName.LastIndexOf('/');

            if (lastSlash > 0)
            {
                if (_db.Repository.getRef(myName.Slice(0, lastSlash)) != null)
                {
                    return(true);
                }
            }

            string rName = myName + "/";

            foreach (Ref r in _db.GetAllRefs().Values)
            {
                if (r.Name.StartsWith(rName))
                {
                    return(true);
                }
            }
            return(false);
        }
Exemple #2
0
 public Dictionary <string, Ref> getAllRefs()
 {
     return(_refDb.GetAllRefs());
 }