8000 Update to libgit2 68ad315 by carlosmn · Pull Request #1264 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content

Update to libgit2 68ad315 #1264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LibGit2Sharp.Tests/NetworkFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public void CanPruneRefs()

using (var repo = new Repository(clonedRepoPath))
{
repo.Network.Remotes.Add("pruner", "file://" + clonedRepoPath2);
repo.Network.Remotes.Add("pruner", clonedRepoPath2);
var remote = repo.Network.Remotes["pruner"];
repo.Network.Fetch(remote);
Assert.NotNull(repo.Refs["refs/remotes/pruner/master"]);
Expand Down
6 changes: 3 additions & 3 deletions LibGit2Sharp/BlameHunk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ internal BlameHunk(IRepository repository, GitBlameHunk rawHunk)
{
InitialPath = LaxUtf8Marshaler.FromNative(rawHunk.OrigPath);
}
LineCount = rawHunk.LinesInHunk;
LineCount = rawHunk.LinesInHunk.ConvertToInt();

// Libgit2's line numbers are 1-based
FinalStartLineNumber = rawHunk.FinalStartLineNumber - 1;
InitialStartLineNumber = rawHunk.OrigStartLineNumber - 1;
FinalStartLineNumber = rawHunk.FinalStartLineNumber.ConvertToInt() - 1;
InitialStartLineNumber = rawHunk.OrigStartLineNumber.ConvertToInt() - 1;

// Signature objects need to have ownership of their native pointers
if (rawHunk.FinalSignature != IntPtr.Zero)
Expand Down
4 changes: 2 additions & 2 deletions LibGit2Sharp/BlameHunkCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ internal BlameHunkCollection(Repository repo, RepositorySafeHandle repoHandle, s
{
version = 1,
flags = options.Strategy.ToGitBlameOptionFlags(),
MinLine = (uint)options.MinLine,
MaxLine = (uint)options.MaxLine,
MinLine = new UIntPtr((uint)options.MinLine),
MaxLine = new UIntPtr((uint)options.MaxLine),
};

if (options.StartingAt != null)
Expand Down
10 changes: 5 additions & 5 deletions LibGit2Sharp/Core/GitBlame.cs
8000
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ internal class GitBlameOptions
public UInt16 MinMatchCharacters;
public GitOid NewestCommit;
public GitOid OldestCommit;
public uint MinLine;
public uint MaxLine;
public UIntPtr MinLine;
public UIntPtr MaxLine;
}

[StructLayout(LayoutKind.Sequential)]
internal class GitBlameHunk
{
public ushort LinesInHunk;
public UIntPtr LinesInHunk;

public GitOid FinalCommitId;
public ushort FinalStartLineNumber;
public UIntPtr FinalStartLineNumber;
public IntPtr FinalSignature;

public GitOid OrigCommitId;
public IntPtr OrigPath;
public ushort OrigStartLineNumber;
public UIntPtr OrigStartLineNumber;
public IntPtr OrigSignature;

public byte Boundary;
Expand Down
4 changes: 4 additions & 0 deletions LibGit2Sharp/Core/GitRebaseOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ internal class GitRebaseOptions

public int quiet;

public int inmemory;

public IntPtr rewrite_notes_ref;

public GitMergeOpts merge_options = new GitMergeOpts { Version = 1 };

public GitCheckoutOpts checkout_options = new GitCheckoutOpts { version = 1 };
}
}
6 changes: 3 additions & 3 deletions LibGit2Sharp/LibGit2Sharp.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\LibGit2Sharp.NativeBinaries.1.0.119\build\LibGit2Sharp.NativeBinaries.props" Condition="Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.119\build\LibGit2Sharp.NativeBinaries.props')" />
<Import Project="..\packages\LibGit2Sharp.NativeBinaries.1.0.126\build\LibGit2Sharp.NativeBinaries.props" Condition="Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.126\build\LibGit2Sharp.NativeBinaries.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand Down Expand Up @@ -403,9 +403,9 @@
</PropertyGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.119\build\LibGit2Sharp.NativeBinaries.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\LibGit2Sharp.NativeBinaries.1.0.119\build\LibGit2Sharp.NativeBinaries.props'))" />
<Error Condition="!Exists('..\packages\LibGit2Sharp.NativeBinaries.1.0.126\build\LibGit2Sharp.NativeBinaries.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\LibGit2Sharp.NativeBinaries.1.0.126\build\LibGit2Sharp.NativeBinaries.props'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
2 changes: 1 addition & 1 deletion LibGit2Sharp/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="LibGit2Sharp.NativeBinaries" version="1.0.119" targetFramework="net4" allowedVersions="[1.0.119]" />
<package id="LibGit2Sharp.NativeBinaries" version="1.0.126" targetFramework="net4" allowedVersions="[1.0.126]" />
</packages>
0