Sep.Git.Tfs.Commands.Labels.Run C# (CSharp) Method

Run() public method

public Run ( ) : int
return int
        public int Run()
        {
            if (!LabelAllBranches)
            {
                return Run(_globals.RemoteId);
            }

            var allRemotes = _globals.Repository.ReadAllTfsRemotes();

            foreach (var tfsRemote in allRemotes)
            {
                CreateLabelsForTfsBranch(tfsRemote);
            }
            return GitTfsExitCodes.OK;
        }

Same methods

Labels::Run ( IGitTfsRemote remote ) : int
Labels::Run ( string remoteId ) : int

Usage Example

Esempio n. 1
0
 private void FetchRemote(bool stopOnFailMergeCommit, IGitTfsRemote remote)
 {
     stdout.WriteLine("Fetching from TFS remote '{0}'...", remote.Id);
     DoFetch(remote, stopOnFailMergeCommit);
     if (labels != null && FetchLabels)
     {
         stdout.WriteLine("Fetching labels from TFS remote '{0}'...", remote.Id);
         labels.Run(remote);
     }
 }
All Usage Examples Of Sep.Git.Tfs.Commands.Labels::Run