Repository navigation
Don't depend on git for patching files - #566
JAicewizard wants to merge 1 commit into
Conversation
|
This pull request was not reviewed automatically because its author does not have write access to this repository. A maintainer with write access can start a review by commenting |
|
This is generally a good idea, but the implementation is a chopped up salad of |
|
Yes I agree, I was wondering what your preference would be. Should I also put the |
|
@clanky-the-clanker review |
Git remains preferred to preserve its existing whitespace handling. The standard patch utility is used when Git is unavailable, regardless of the host platform. Backend selection occurs before source mutation, and the Git-specific environment cleanup remains in effect.
|
Refactored this to select the patch backend once before applying anything. It prefers The commits are squashed with the original author preserved. I also verified formatting, compilation, Clippy, and application of all shipped patches with |
|
Oh seems like I forgot to push, its been a busy week. A dynamic selection process feels complicated, but if you find the behavior important it is necessary. I will try building this pr on freebsd to verify it is working |
|
On Windows you can often have git without patch, patch.exe can be present but not in PATH, and MinGit strips it. |
Some build environments do have git, such as freebsd. All unix systems have
patchas it is part of the unix standard, requirering no additional build tools.