-
Notifications
You must be signed in to change notification settings - Fork 923
added lines and deleted lines in content changes #1790
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
Changes from 1 commit
79e11b9
92b9e20
445bbbe
70b6bd7
3c777dc
9733e74
37fa585
8196539
a9d5c36
c5bd90a
34a65c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…because linecallback isn't called in this case
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| using LibGit2Sharp.Core; | ||
| using LibGit2Sharp.Core.Handles; | ||
| using System; | ||
| using System.Collections; | ||
| using System.Collections.Generic; | ||
| using System.Diagnostics; | ||
| using System.Globalization; | ||
| using System.Text; | ||
| using LibGit2Sharp.Core; | ||
| using LibGit2Sharp.Core.Handles; | ||
|
|
||
| namespace LibGit2Sharp | ||
| { | ||
|
|
@@ -70,8 +70,8 @@ private unsafe int PrintCallBack(git_diff_delta* delta, GitDiffHunk hunk, GitDif | |
|
|
||
| string decodedContent = LaxUtf8Marshaler.FromNative(line.content, (int)line.contentLen); | ||
|
||
|
|
||
| currentChange.AddedLines = new List<Line>(); | ||
| currentChange.DeletedLines = new List<Line>(); | ||
| currentChange.AddedLines = currentChange.AddedLines ?? new List<Line>(); | ||
bording marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| currentChange.DeletedLines = currentChange.DeletedLines ?? new List<Line>(); | ||
|
|
||
| switch (line.lineOrigin) | ||
| { | ||
|
|
@@ -175,7 +175,7 @@ public virtual string Content | |
| /// </summary> | ||
| /// <param name="patch"><see cref="Patch"/>.</param> | ||
| /// <returns>The patch content as string.</returns> | ||
| public static implicit operator string (Patch patch) | ||
| public static implicit operator string(Patch patch) | ||
| { | ||
| return patch.fullPatchBuilder.ToString(); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.