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>2013-09-23 22:44:28 +0400
committernulltoken <emeric.fermas@gmail.com>2013-09-26 01:19:00 +0400
commit7b7042341db182ec949cff3ed84766ea2f55baf1 (patch)
tree0ffd89a66d9261f1e25e02c6c65a20fdefe04594 /LibGit2Sharp/Repository.cs
parentd54f395e076d3f81a720b356d9869d9d93298345 (diff)
Update libgit2 binaries to 11f8336
https://github.com/libgit2/libgit2/compare/32e4992...11f8336
Diffstat (limited to 'LibGit2Sharp/Repository.cs')
-rw-r--r--LibGit2Sharp/Repository.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs
index 3ec3def4..d9399302 100644
--- a/LibGit2Sharp/Repository.cs
+++ b/LibGit2Sharp/Repository.cs
@@ -665,7 +665,7 @@ namespace LibGit2Sharp
// Make sure this is not an unborn branch.
if (branch.Tip == null)
{
- throw new OrphanedHeadException(
+ throw new UnbornBranchException(
string.Format(CultureInfo.InvariantCulture,
"The tip of branch '{0}' is null. There's nothing to checkout.", branch.Name));
}
@@ -865,11 +865,11 @@ namespace LibGit2Sharp
/// <returns>The generated <see cref="Commit"/>.</returns>
public Commit Commit(string message, Signature author, Signature committer, bool amendPreviousCommit = false)
{
- bool isHeadOrphaned = Info.IsHeadOrphaned;
+ bool isHeadOrphaned = Info.IsHeadUnborn;
if (amendPreviousCommit && isHeadOrphaned)
{
- throw new OrphanedHeadException("Can not amend anything. The Head doesn't point at any commit.");
+ throw new UnbornBranchException("Can not amend anything. The Head doesn't point at any commit.");
}
var treeId = Proxy.git_tree_create_fromindex(Index);
@@ -925,7 +925,7 @@ namespace LibGit2Sharp
return Head.Tip.Parents;
}
- if (Info.IsHeadOrphaned)
+ if (Info.IsHeadUnborn)
{
return Enumerable.Empty<Commit>();
}