X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f51e53726b39a177355a7917c91c56f390dda7ef..4e93f2aa01606154dc6af6e494b9f2b7e4c8c7fa:/scripts/migrate-black.py?ds=inline 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), ],