X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f51e53726b39a177355a7917c91c56f390dda7ef..5a0615a7edd3339718a346577f03cf07da364025:/scripts/migrate-black.py?ds=sidebyside diff --git a/scripts/migrate-black.py b/scripts/migrate-black.py index 1183cb8..ff52939 100755 --- a/scripts/migrate-black.py +++ b/scripts/migrate-black.py @@ -5,7 +5,7 @@ import logging import os import sys -from subprocess import check_output, run, Popen, PIPE +from subprocess import PIPE, Popen, check_output, run def git(*args: str) -> str: @@ -49,6 +49,7 @@ def blackify(base_branch: str, black_command: str, logger: logging.Logger) -> in [ "git", "diff", + "--binary", "--find-copies", "%s-black..%s-black" % (last_commit, commit), ],