diff options
author | Andrej Shadura <andrew@shadura.me> | 2022-03-24 22:32:24 +0100 |
---|---|---|
committer | Andrej Shadura <andrew@shadura.me> | 2022-03-24 22:32:29 +0100 |
commit | 4af15349f415adaa211624350891ce33e0cc79f5 (patch) | |
tree | fb3186fe96be549d065ea418362d779d6e946733 /git_crecord | |
parent | cdb1c2d9469a7f65434f633b5f77047b952c9bd1 (diff) |
Add a TODO at non-working trimcontext function
This function doesn’t do anything useful because "and False";
it needs to be fixed and more tests written to verify everything
still works as expected.
Diffstat (limited to 'git_crecord')
-rw-r--r-- | git_crecord/crpatch.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git_crecord/crpatch.py b/git_crecord/crpatch.py index 7b9c2e1..ad587e3 100644 --- a/git_crecord/crpatch.py +++ b/git_crecord/crpatch.py @@ -521,6 +521,7 @@ class Hunk(PatchNode): ): def trimcontext(number, lines): delta = len(lines) - self.maxcontext + # TODO: why is this disabled? if False and delta > 0: return number + delta, lines[:self.maxcontext] return number, lines |