summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/git-pre-commit.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/git-pre-commit.py b/util/git-pre-commit.py
index 4a18db01f..33437faf3 100755
--- a/util/git-pre-commit.py
+++ b/util/git-pre-commit.py
@@ -58,7 +58,6 @@ git = GitRepo()
opts = {}
repo_base = git.repo_base()
-context = 8
ui = StdioUI()
os.chdir(repo_base)
@@ -68,7 +67,7 @@ for status, fname in git.status(filter="MA", cached=True):
if args.verbose:
print "Checking %s..." % fname
if status == "M":
- regions = git.staged_regions(fname, context=context)
+ regions = git.staged_regions(fname)
else:
regions = all_regions