However, I also want to do git blame --reverse START..END filename
to blame the commit that deleted a line present at the START commit (or more specifically, the last commit within START..END
where the line was present). Is there any way I can gitpython
to achieve this?
I think with the current implementation it's not possible as it will always pass commit
as argument. Ideally, one would be able to do something like repo.blame(filepath, reverse='<start>..<end>')
.
\nThat would probably be fine for the parser, but it would need some refactoring to expose it in the public API.
git blame --reverse
?
#1397
-
I can do git blame on a file in the following way:
However, I also want to do |
Beta Was this translation helpful? Give feedback.
-
I think with the current implementation it's not possible as it will always pass |
Beta Was this translation helpful? Give feedback.
I think with the current implementation it's not possible as it will always pass
commit
as argument. Ideally, one would be able to do something likerepo.blame(filepath, reverse='<start>..<end>')
.That would probably be fine for the parser, but it would need some refactoring to expose it in the public API.