mirror of
https://github.com/oskar456/dzonegit.git
synced 2024-05-11 05:55:41 +00:00
Remove forgotten useless function
This commit is contained in:
13
dzonegit.py
13
dzonegit.py
@ -68,19 +68,6 @@ def check_whitespace_errors(against, revision=None):
|
||||
)
|
||||
|
||||
|
||||
def check_tree_whitespace_errors(tree1, tree2):
|
||||
r = subprocess.run(
|
||||
["git", "diff-tree", "--check", tree1, tree2],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
)
|
||||
if r.returncode != 0:
|
||||
raise HookException(
|
||||
"Whitespace errors",
|
||||
stderr=r.stdout.decode("utf-8"),
|
||||
)
|
||||
|
||||
|
||||
def get_file_contents(path, revision=None):
|
||||
""" Return contents of a file in staged env or in some revision. """
|
||||
revision = "" if revision is None else revision
|
||||
|
Reference in New Issue
Block a user