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);
}
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; }