diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-02-12 14:08:20 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-02-12 14:24:04 +0400 |
commit | d3286d5a48746c29fd51fc552c2b27083b993afb (patch) | |
tree | 203591148e74b8b6e68bd587da0392a12fc2562f /LibGit2Sharp/RemoteCollection.cs | |
parent | 0460794d49f0e2ed1fb51542bd1e69ad9a1915e3 (diff) |
Introduce repo.Network.Remotes.IsValidName()
Fix #317
Diffstat (limited to 'LibGit2Sharp/RemoteCollection.cs')
-rw-r--r-- | LibGit2Sharp/RemoteCollection.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/LibGit2Sharp/RemoteCollection.cs b/LibGit2Sharp/RemoteCollection.cs index f1b71240..6753cdf3 100644 --- a/LibGit2Sharp/RemoteCollection.cs +++ b/LibGit2Sharp/RemoteCollection.cs @@ -136,6 +136,16 @@ namespace LibGit2Sharp return Add(name, url); } + /// <summary> + /// Determines if the proposed remote name is well-formed. + /// </summary> + /// <param name="name">The name to be checked.</param> + /// <returns>true is the name is valid; false otherwise.</returns> + public virtual bool IsValidName(string name) + { + return Proxy.git_remote_is_valid_name(name); + } + private string DebuggerDisplay { get |