easydiffusion/scripts
JeLuF 2b1f8533b0
Add --whitespace=fix to git apply
For some users who have git preinstalled, `git apply` fails due to whitespace errors.

Aracon found that applying `--whitespace=fix` to the `git apply` invocation fixes the problem.
https://discord.com/channels/1014774730907209781/1036679816713359471/1037025435491516548

ryz confirmed that `--reject` wasn't needed for him to make it work, and this explanation from the "git apply" manpage suggests 
that we shouldn't include `--reject`:

> For atomicity, git apply by default fails the whole patch and does not touch the working tree when some 
> of the hunks do not apply. This option makes it apply the parts of the patch that are applicable, and leave 
> the rejected hunks in corresponding *.rej files.

After having a look at https://github.com/git/git/blob/master/apply.c, I think that they only check for `correct_ws_error` if they couldn't apply the patch. It doesn't impact 'normal' patching. If the patch can be applied, it will be done, and only if the apply fails, they'll check whether adding or removing WS might help. It should thus be save to be added and didn't produce any errors on my installation using SDUI-provided git.
2022-11-20 23:07:44 +01:00
..
bootstrap.bat Only set the userprofile if in a new micromamba installation 2022-11-14 10:11:28 +05:30
bootstrap.sh Tabs to spaces in bootstrap scripts 2022-11-12 12:47:39 +05:30
Developer Console.cmd Set the PYTHONPATH right at the start, to prevent it from picking up a system-wide python 2022-11-11 11:37:15 +05:30
developer_console.sh Deduce the filename in developer_console.sh instead of hardcoding it 2022-10-29 20:25:11 +05:30
functions.sh Add blank lines to error message 2022-11-05 19:02:19 +01:00
on_env_start.bat Don't show the list of files that have been copied on startup 2022-11-16 11:31:16 +05:30
on_env_start.sh More error handling, central error function 2022-11-05 18:59:59 +01:00
on_sd_start.bat Add --whitespace=fix to git apply 2022-11-20 23:07:44 +01:00
on_sd_start.sh Picklescan of model files 2022-11-16 22:34:02 +01:00
post_activate.bat Keep v2 files in the repo, for the updater 2022-09-02 13:58:36 +05:30
post_activate.sh Revert "Revert "Revert "Revert "Merge main"""" 2022-09-09 21:02:33 +05:30
Start Stable Diffusion UI.cmd Set the PYTHONPATH right at the start, to prevent it from picking up a system-wide python 2022-11-11 11:37:15 +05:30
start.sh More error handling, central error function 2022-11-05 18:59:59 +01:00
win_enable_long_filepaths.ps1 Keep v2 files in the repo, for the updater 2022-09-02 13:58:36 +05:30