Revert "feat(blame): Support custom `rev_opts` for blame" · gitpython-developers/GitPython@19647c8 · GitHub
Skip to content

Commit 19647c8

Browse files
committed
Revert "feat(blame): Support custom rev_opts for blame"
This reverts commit 18a79d8.
1 parent 18a79d8 commit 19647c8

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

AUTHORS

Lines changed: 0 additions & 1 deletion

git/repo/base.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -950,12 +950,7 @@ def blame_incremental(self, rev: str | HEAD, file: str, **kwargs: Any) -> Iterat
950950
)
951951

952952
def blame(
953-
self,
954-
rev: Union[str, HEAD],
955-
file: str,
956-
incremental: bool = False,
957-
rev_opts: Optional[List[str]] = None,
958-
**kwargs: Any
953+
self, rev: Union[str, HEAD], file: str, incremental: bool = False, **kwargs: Any
959954
) -> List[List[Commit | List[str | bytes] | None]] | Iterator[BlameEntry] | None:
960955
"""The blame information for the given file at the given revision.
961956
@@ -967,8 +962,8 @@ def blame(
967962
of appearance."""
968963
if incremental:
969964
return self.blame_incremental(rev, file, **kwargs)
970-
rev_opts = rev_opts or []
971-
data: bytes = self.git.blame(rev, *rev_opts, "--", file, p=True, stdout_as_string=False, **kwargs)
965+
966+
data: bytes = self.git.blame(rev, "--", file, p=True, stdout_as_string=False, **kwargs)
972967
commits: Dict[str, Commit] = {}
973968
blames: List[List[Commit | List[str | bytes] | None]] = []
974969

test/test_repo.py

Lines changed: 0 additions & 7 deletions

0 commit comments

Comments
 (0)