/// <summary> /// Checks to see if the current project has a repository. /// </summary> /// <returns> /// True if the project has a repository, otherwise false. /// </returns> public static bool ProjectHasRepository() { switch (mVersionControlType) { case VersionControlType.Git: return(Git.ProjectHasRepository()); case VersionControlType.Hg: return(Hg.ProjectHasRepository()); } return(false); }
/// <summary> /// Finds all repository branches, asynchronously. Use ParseBranches to parse the result. /// </summary> public static Process FindBranches(System.EventHandler exitEventHandler) { switch (mVersionControlType) { case VersionControlType.Git: return(Git.FindBranches(exitEventHandler)); case VersionControlType.Hg: return(Hg.FindBranches(exitEventHandler)); } return(null); }
/// <summary> /// Parses all repository branches. /// </summary> public static VCBranch[] ParseBranches(string input) { switch (mVersionControlType) { case VersionControlType.Git: return(Git.ParseBranches(input)); case VersionControlType.Hg: return(Hg.ParseBranches(input)); } return(null); }
/// <summary> /// Returns the location of the project's repository. /// </summary> public static string RepositoryLocation() { switch (mVersionControlType) { case VersionControlType.Git: return(Git.RepositoryLocation()); case VersionControlType.Hg: return(Hg.RepositoryLocation()); } return(null); }
public static string ParseRepositoryLocation(string input) { switch (mVersionControlType) { case VersionControlType.Git: return(Git.ParseRepositoryLocation(input)); case VersionControlType.Hg: return(Hg.ParseRepositoryLocation(input)); } return(null); }
/// <summary> /// Gets the location of the project's repository. /// </summary> public static Process GetRepositoryLocation(System.EventHandler exitEventHandler) { switch (mVersionControlType) { case VersionControlType.Git: return(Git.GetRepositoryLocation(exitEventHandler)); case VersionControlType.Hg: return(Hg.GetRepositoryLocation(exitEventHandler)); } return(null); }
public static bool ParseProjectHasRepository(string input) { switch (mVersionControlType) { case VersionControlType.Git: return(Git.ParseProjectHasRepository(input)); case VersionControlType.Hg: return(Hg.ParseProjectHasRepository(input)); } return(false); }
/// <summary> /// Checks to see if the current project has a repository. /// </summary> public static Process ProjectHasRepository(System.EventHandler exitEventHandler) { switch (mVersionControlType) { case VersionControlType.Git: return(Git.ProjectHasRepository(exitEventHandler)); case VersionControlType.Hg: return(Hg.ProjectHasRepository(exitEventHandler)); } return(null); }