From 00c6bd2d3d679f8f29183b94db76d67ea412702a Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Tue, 26 Nov 2013 18:34:55 +0100 Subject: [PATCH] give more help when running list-remote-branches command --- GitTfs/Commands/ListRemoteBranches.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GitTfs/Commands/ListRemoteBranches.cs b/GitTfs/Commands/ListRemoteBranches.cs index f9c1bdb7..0d446b0f 100644 --- a/GitTfs/Commands/ListRemoteBranches.cs +++ b/GitTfs/Commands/ListRemoteBranches.cs @@ -53,6 +53,7 @@ namespace Sep.Git.Tfs.Commands if (branches.IsEmpty()) { stdout.WriteLine("No TFS branches were found!"); + stdout.WriteLine("\n\nPerhaps you should convert your branch folders into a branch in TFS:"); } else { @@ -62,8 +63,9 @@ namespace Sep.Git.Tfs.Commands Branch.WriteRemoteTfsBranchStructure(tfsHelper, stdout, branchObject.Path); } stdout.WriteLine("\nCloning root branches (marked by [*]) is recommended!"); - stdout.WriteLine("\n\nPS:if your branch is not listed here, perhaps you should convert the containing folder to a branch in TFS."); + stdout.WriteLine("\n\nPS:if your branch is not listed here, perhaps you should convert its containing folder into a branch in TFS:"); } + stdout.WriteLine(" -> Open 'Source Control Explorer' and for each folder corresponding to a branch, right click on the folder and select 'Branching and Merging' > 'Convert to branch'."); return GitTfsExitCodes.OK; } }