public UpdateCommandState(BranchTrackingDetails divergence, string pullDisabledMessage, string pushDisabledMessage) { CommitsAhead = divergence.AheadBy ?? 0; CommitsBehind = divergence.BehindBy ?? 0; PullDisabledMessage = pullDisabledMessage; PushDisabledMessage = pushDisabledMessage; }
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; }
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; }
public TrackingDetails(string trackingBranchCannonicalName, BranchTrackingDetails branchTrackingDetails) { AheadBy = branchTrackingDetails?.AheadBy; BehindBy = branchTrackingDetails?.BehindBy; CannonicalName = trackingBranchCannonicalName; }