本文整理汇总了C#中MonoDevelop.VersionControl.Git.GitRepository.GetTags方法的典型用法代码示例。如果您正苦于以下问题:C# GitRepository.GetTags方法的具体用法?C# GitRepository.GetTags怎么用?C# GitRepository.GetTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop.VersionControl.Git.GitRepository
的用法示例。
在下文中一共展示了GitRepository.GetTags方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EditBranchDialog
public EditBranchDialog (GitRepository repo, Branch branch, bool isNew)
{
this.Build ();
this.repo = repo;
comboStore = new ListStore (typeof(string), typeof(Gdk.Pixbuf), typeof (string));
comboSources.Model = comboStore;
CellRendererPixbuf crp = new CellRendererPixbuf ();
comboSources.PackStart (crp, false);
comboSources.AddAttribute (crp, "pixbuf", 1);
CellRendererText crt = new CellRendererText ();
comboSources.PackStart (crt, true);
comboSources.AddAttribute (crt, "text", 2);
if (branch != null) {
if (!isNew)
oldName = branch.Name;
currentTracking = branch.Tracking;
entryName.Text = branch.Name;
if (currentTracking != null)
checkTrack.Active = true;
}
foreach (Branch b in repo.GetBranches ()) {
AddValues (b.Name, ImageService.GetPixbuf ("vc-git-branch"));
}
foreach (string t in repo.GetTags ())
AddValues (t, ImageService.GetPixbuf ("vc-git-tag"));
foreach (RemoteSource r in repo.GetRemotes ()) {
foreach (string b in repo.GetRemoteBranches (r.Name))
AddValues (r.Name + "/" + b, ImageService.GetPixbuf ("md-web-search-icon"));
}
UpdateStatus ();
}
示例2: EditBranchDialog
public EditBranchDialog (GitRepository repo, Branch branch, bool isNew)
{
this.Build ();
this.repo = repo;
comboStore = new ListStore (typeof(string), typeof(Xwt.Drawing.Image), typeof (string));
comboSources.Model = comboStore;
var crp = new CellRendererImage ();
comboSources.PackStart (crp, false);
comboSources.AddAttribute (crp, "image", 1);
var crt = new CellRendererText ();
comboSources.PackStart (crt, true);
comboSources.AddAttribute (crt, "text", 2);
if (branch != null) {
if (!isNew)
oldName = branch.Name;
currentTracking = branch.Tracking;
entryName.Text = branch.Name;
checkTrack.Active = currentTracking != null;
}
foreach (Branch b in repo.GetBranches ()) {
AddValues (b.Name, ImageService.GetIcon ("vc-branch", IconSize.Menu));
}
foreach (string t in repo.GetTags ())
AddValues (t, ImageService.GetIcon ("vc-tag", IconSize.Menu));
foreach (RemoteSource r in repo.GetRemotes ()) {
foreach (string b in repo.GetRemoteBranches (r.Name))
AddValues (r.Name + "/" + b, ImageService.GetIcon ("vc-repository", IconSize.Menu));
}
UpdateStatus ();
}