PatienceAlgorithm flag in CompareOptions#1039
Conversation
|
Do we need some tests here? I'm not quite sure what is the best approach to verify whether particular diff is patience or not. |
Indeed, we tend to prefer covering features with tests. The easiest way to make this happen would be to
|
What do you mean by |
|
|
|
@nulltoken is there some helper method to parse |
|
@dmalikov No. you'll have to build one If you've found a way to identify a small case where |
|
FWIW, I've found a short example that should be sufficient from a test coverage perspective |
|
The following code will create a var content = "My content";
var path = "file.txt";
var td = new TreeDefinition();
td.Add(path, OdbHelper.CreateBlob(repo, content), Mode.NonExecutableFile);
var t = repo.ObjectDatabase.CreateTree(td); |
|
Well, the problem is not to build 2 trees and calculate a diff between Regular diff and patience diff are almost always identical in terms of On 5 May 2015 at 21:09, nulltoken notifications@github.com wrote:
|
|
@dmalikov Oh, sorry! I misunderstood your question. You may be willing to actually leverage |
|
Thanks for examples, test is added |
There was a problem hiding this comment.
Can you please wrap this line so that it reads better on GitHub (without having to scroll horizontally)?
|
@nulltoken updated |
|
@dmalikov Awesome! Last request: Could you please squash those commits together into a single cohesive one? |
6747b5e to
70d1439
Compare
|
@nulltoken squashed |
PatienceAlgorithm flag in CompareOptions
|
✨ ✨ ✨ ✨ ✨ ✨ Very cool contribution! Thanks a lot! |
|
@nulltoken could you please build a new version of the NuGet package and upload it? |
|
@dmalikov Sir! Done, Sir! 😉 Published as NuGet pre-release package |
|
Thanks! On 9 May 2015 at 13:18, nulltoken notifications@github.com wrote:
|
Fix #1037