GitCommands.GitModule.GetRefs C# (CSharp) Method

GetRefs() public method

public GetRefs ( bool tags = true, bool branches = true ) : IList
tags bool
branches bool
return IList
        public IList<IGitRef> GetRefs(bool tags = true, bool branches = true)
        {
            var tree = GetTree(tags, branches);
            return GetTreeRefs(tree);
        }

Usage Example

Exemplo n.º 1
0
 private void BranchDropDown(object sender, EventArgs e)
 {
     GitModule module = new GitModule(Directory.Text);
     Branch.DisplayMember = "Name";
     IList<GitRef> heads;
     if (module.IsValidGitWorkingDir())
         heads = module.GetRefs(false);
     else
         heads = new List<GitRef>();
     heads.Insert(0, GitRef.NoHead(module));
     Branch.DataSource = heads;
 }
All Usage Examples Of GitCommands.GitModule::GetRefs
GitModule