Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-12-11 15:09:37 +0400
committernulltoken <emeric.fermas@gmail.com>2012-12-11 15:09:37 +0400
commit4c1cd49513ba0c78de54799661cd03661f8a31ad (patch)
tree57775f3cefd72c0a28882f008cd9a96b09ce15b2 /LibGit2Sharp/BranchCollection.cs
parent7c08048cfb150d50acc92fa404db256c29427b6b (diff)
Fix some issues pinpointed by Code Analysis
Diffstat (limited to 'LibGit2Sharp/BranchCollection.cs')
-rw-r--r--LibGit2Sharp/BranchCollection.cs16
1 files changed, 11 insertions, 5 deletions
diff --git a/LibGit2Sharp/BranchCollection.cs b/LibGit2Sharp/BranchCollection.cs
index 38dc492f..1a5ced49 100644
--- a/LibGit2Sharp/BranchCollection.cs
+++ b/LibGit2Sharp/BranchCollection.cs
@@ -129,13 +129,13 @@ namespace LibGit2Sharp
/// Create a new local branch with the specified name
/// </summary>
/// <param name = "name">The name of the branch.</param>
- /// <param name = "commitish">Revparse spec for the target commit.</param>
+ /// <param name = "committish">Revparse spec for the target commit.</param>
/// <param name = "allowOverwrite">True to allow silent overwriting a potentially existing branch, false otherwise.</param>
/// <returns></returns>
[Obsolete("This method will be removed in the next release. Please use Add() instead.")]
- public virtual Branch Create(string name, string commitish, bool allowOverwrite = false)
+ public virtual Branch Create(string name, string committish, bool allowOverwrite = false)
{
- return this.Add(name, commitish, allowOverwrite);
+ return this.Add(name, committish, allowOverwrite);
}
/// <summary>
@@ -177,7 +177,9 @@ namespace LibGit2Sharp
if (branch.IsRemote)
{
- throw new LibGit2SharpException(string.Format("Cannot rename branch '{0}'. It's a remote tracking branch.", branch.Name));
+ throw new LibGit2SharpException(
+ string.Format(CultureInfo.InvariantCulture,
+ "Cannot rename branch '{0}'. It's a remote tracking branch.", branch.Name));
}
using (ReferenceSafeHandle referencePtr = repo.Refs.RetrieveReferencePtr("refs/heads/" + branch.Name))
@@ -197,7 +199,11 @@ namespace LibGit2Sharp
private string DebuggerDisplay
{
- get { return string.Format("Count = {0}", this.Count()); }
+ get
+ {
+ return string.Format(CultureInfo.InvariantCulture,
+ "Count = {0}", this.Count());
+ }
}
}
}