All Questions
3 questions
4
votes
2
answers
1k
views
git diff between current date and some times ago in GitPython
I am using GitPython to find the changed file for a certain period of time (for example now and 1 week ago):
repo = Repo(self.repo_directory)
for item in repo.head.commit.diff('develop@{1 weeks ago}...
1
vote
0
answers
1k
views
Find the number of unique changes in a file, with gitpython
I want to determine how much a file has changed, since some date. What I have so far:
def find_changes(repo:git.Repo, file_to_check:str, since=None):
''' finds all commits in which the file with ...
31
votes
8
answers
60k
views
gitpython and git diff
I am looking to get only the diff of a file changed from a git repo. Right now, I am using gitpython to actually get the commit objects and the files of git changes, but I want to do a dependency ...