GetAllRefs() public method

Gets all known refs (heads, tags, remotes).
public GetAllRefs ( ) : Ref>.Dictionary
return Ref>.Dictionary
Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public Dictionary <string, Ref> getAllRefs()
 {
     return(_refDb.GetAllRefs());
 }