Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

I don't get all the commits #1589

Unanswered
nricciardi asked this question in Q&A
May 13, 2023 · 1 comments · 2 replies
Discussion options

I have a test repo where there is master branch. From master I have created branch2 and branch3, then from branch2 I have created branch2-2. Then I have merged branch3 into branch2.

I have created a function to create a recursive dataclasses to represent repository, so then I can display it using GitGraphJS, BUT I don't get all the commits when I use iter_commits function in a master branch, why?

In addition, I would have the branch name of each commit, but when I use rev_name on commit it display stranger name with ~.

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

I recommend setting up debug logging to see which commands GitPython executes. These can then be executed by hand to see if it truly is GitPython that not listing some commits, or if it is git itself producing unexpected output.

You must be logged in to vote
2 replies
Comment options

I have fixed it using a for which iterates for each branch and gets commit of the particular branch.

Is there a function to get all commits like a tree instead of list of commits?
As list of commits I must parse they and the process is so slow...

Comment options

No. If performance is an issue, pygit2 might help, or caching, or using a different programming language entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1588 on May 14, 2023 06:11.

AltStyle によって変換されたページ (->オリジナル) /