checkout: change default strategy to SAFE#4531
Conversation
a79c5ce to
c98be43
Compare
|
Thanks for this PR, @tiennou. Could you please add an entry to our changelog so that people will (hopefully) notice the change? |
|
There are a couple of places that take a checkout options structure and then upgrade the defaults to Those can (and should) go away now -- which would allow consumers to actually provide a checkout strategy that does a dry run. At the moment, there's no way for them to do that. That doesn't have to be part of this PR, but if not, please open an issue and assign it to me to investigate. |
As per libgit2#4200, our default is quite surprising to users that expect checkout to just "do the thing".
c98be43 to
cdd0bc2
Compare
|
Fixed up the CHANGELOG, the documentation (heh), as well as the uses I found where the fix was clear. I've left this (called from there) because I don't think it's related, but someone with a more complete grasp of the merge code should take a look. My understanding was "we're doing weird stuff with the indexwriter and not-writing-indexes so we're stashing the user-given strategy somewhere, munging the options one, and then use both in different codepaths". |
|
I think the untouched region is fine: So it will use the user-supplied checkout strategy and fall back to |
|
I'm fine with the PR. Will not approve it though as I'm not as familiar with the code as @ethomson |
|
Awesome, thanks @tiennou! |
Fixes #4200