GeezerVison is showing github.com — Update to use modern version of LibGit2Sharp and use indent heuristic when diffing by jcansdale · Pull Request #2142 · github/VisualStudio
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Conversation
jcansdale
commented
Dec 18, 2018
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Depends on:
Thanks @bording for the fast turnaround of the net46 PR! 🙏
What this PR does
- Update to reference LibGit2Sharp
0.26.0
- Stop using obsolete
LibGit2Sharp methods
- Fix broken test caused by
Commit and Tree no longer accepting \ in paths
- Enable indent heuristic when comparing files
- Move
Compare and CompareWith from IGitClient to IGitService (comparing files doesn't require the credentials of GitClient)
- Add tests for
Compare and CompareWith methods of GitClient
To do
- Rebase and reference
LibGit2Sharp 0.26.* from NuGet (not local version)
- Enable the indent heuristic when diffing
- Previously is was possible to use
\ as a separator when looking up Tree entries. We should maybe add checks for this in case we're using \ instead of / anywhere.
How to test
Fixes #1469
Fixes #2144
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Stop using obsolete LigGit2Sharp methods.
Also changed from using Task.Factory.StartNew to Task.Run.
Reference LibGit2Sharp that targets .NET 4.6
Pass gitHubFilePath not winFilePath to FakeDiffService.Diff.
IGitService knows about IRepository but not remote servers. IGitClient
knows about remote git repositories. IGitService is a more appropriate
home for Compare and CompareWith.
There is a bug where a renamed file is in a directory.
The new version of LibGit2Sharp expects / separators in Git paths. The
previous version wasn't fussy.
Check that path doesn't contain \ rather than automatically convert to
use /.
Make private ExtractToTempFile method accept Git path.
jcansdale
changed the title
[wip] Update to use modern version of LibGit2Sharp and use indent heuristic when diffing
Update to use modern version of LibGit2Sharp and use indent heuristic when diffing
Mar 19, 2019
|
|
#pragma warning disable 0618 // TODO: Replace `Network.Fetch` with `Commands.Fetch`.
|
|
|
repository.Network.Fetch(remote, fetchOptions);
|
|
|
#pragma warning restore 0618
|
|
|
repository.Network.Fetch(remoteName, new[] { "+refs/heads/*:refs/remotes/origin/*" }, fetchOptions);
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess things have changed since this warning was disabled...
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.