Ejemplo n.º 1
0
 public UpdateCommandState(BranchTrackingDetails divergence, string pullDisabledMessage, string pushDisabledMessage)
 {
     CommitsAhead        = divergence.AheadBy ?? 0;
     CommitsBehind       = divergence.BehindBy ?? 0;
     PullDisabledMessage = pullDisabledMessage;
     PushDisabledMessage = pushDisabledMessage;
 }
Ejemplo n.º 2
0
 public BranchInfo(Branch branch)
 {
     if (branch.TrackedBranch != null)
     {
         TrackedBranch = branch.TrackedBranch.FriendlyName;
     }
     TrackingDetails         = branch.TrackingDetails;
     CanonicalName           = branch.CanonicalName;
     Tip                     = branch.Tip;
     IsCurrentRepositoryHead = branch.IsCurrentRepositoryHead;
     IsRemote                = branch.IsRemote;
     FriendlyName            = branch.FriendlyName;
 }
 public UpdateCommandState(
     BranchTrackingDetails divergence,
     bool pullEnabled,
     bool pushEnabled,
     string pullToolTip,
     string pushToolTip)
 {
     CommitsAhead  = divergence.AheadBy ?? 0;
     CommitsBehind = divergence.BehindBy ?? 0;
     PushEnabled   = pushEnabled;
     PullEnabled   = pullEnabled;
     PullToolTip   = pullToolTip;
     PushToolTip   = pushToolTip;
 }
Ejemplo n.º 4
0
 public UpdateCommandState(
     BranchTrackingDetails divergence,
     bool pullEnabled,
     bool pushEnabled,
     string pullToolTip,
     string pushToolTip,
     string syncSubmodulesToolTip,
     int submodulesToSync)
 {
     CommitsAhead          = divergence.AheadBy ?? 0;
     CommitsBehind         = divergence.BehindBy ?? 0;
     PushEnabled           = pushEnabled;
     PullEnabled           = pullEnabled;
     PullToolTip           = pullToolTip;
     PushToolTip           = pushToolTip;
     SyncSubmodulesToolTip = syncSubmodulesToolTip;
     SubmodulesToSync      = submodulesToSync;
 }
Ejemplo n.º 5
0
 public TrackingDetails(string trackingBranchCannonicalName, BranchTrackingDetails branchTrackingDetails)
 {
     AheadBy        = branchTrackingDetails?.AheadBy;
     BehindBy       = branchTrackingDetails?.BehindBy;
     CannonicalName = trackingBranchCannonicalName;
 }