8000 Tree to Tree diffing issue · Issue #196 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content
Tree to Tree diffing issue #196
Closed
Closed
@nulltoken

Description

@nulltoken

Repository -> git://github.com/timburks/nu.git

Parent -> b46ed8403aba281d47619f71dd46fefa08e5c809
Commit -> d7a206818e70d753845fff30264fbae4a69ad7a0

Diffing those two commits creates two entries with the same name
See programming-nu/nu@d7a2068

=== Stack Trace ===
Error: An item with the same key has already been added.
    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
    at LibGit2Sharp.TreeChanges.AddFileChange(GitDiffDelta delta) in 
C:\data\workspaces\git\libgit2sharp\LibGit2Sharp\TreeChanges.cs:line 98
    at LibGit2Sharp.TreeChanges.PrintCallBack(IntPtr data, GitDiffDelta delta, 
GitDiffRange range, GitDiffLineOrigin lineorigin, IntPtr content, UInt32 contentlen)
aces\git\libgit2sharp\LibGit2Sharp\TreeChanges.cs:line 53
    at LibGit2Sharp.Core.NativeMethods.git_diff_print_patch(DiffListSafeHandle diff, 
IntPtr data, git_diff_data_fn printCallback)
    at LibGit2Sharp.TreeChanges..ctor(DiffListSafeHandle diff) in 
C:\data\workspaces\git\libgit2sharp\LibGit2Sharp\TreeChanges.cs:line 41
    at LibGit2Sharp.Diff.Compare(Tree oldTree, Tree newTree) in 
C:\data\workspaces\git\libgit2sharp\LibGit2Sharp\Diff.cs:line 34

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0