Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Is it possible to use Repo.iter_commits or other API to get renames of files? #1476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Guo-Zhang opened this issue Aug 9, 2022 · 0 comments

Comments

@Guo-Zhang
Copy link

I want to track a file with its rename ones. For example, a file is called "test_lecture", and then rename to "python_data_analytics". I want to track all the commits for the files if possible.

I use Repo.iter_commits currently, which requires on git rev-list command, a complicated command(https://stackoverflow.com/questions/64397278/understanding-git-rev-list).

I have noticed that git log with --follow and --find-renames(https://www.zhihu.com/question/531483642/answer/2472733253) may work. Or are there any API based on it can be used?

@gitpython-developers gitpython-developers locked and limited conversation to collaborators Aug 10, 2022
@Byron Byron converted this issue into discussion #1477 Aug 10, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

1 participant