Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature request: More intuitive commands #901
Open
Labels
Comments
I am glad GitPython is useful to you! I agree that the current API is cumbersome to some extend, which is due to GitPython itself being mostly on the level of 'plumbing'. The terms mentioned above as well as the ease at which one can do certain operations are usually implemented in As GitPython is in maintenance mode, all quality of life improvements must be submitted as a PR, but I think it's OK to keep this issue for ideas. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
repo.create_head(branch_name)
would be more intuitive asrepo.create_branch(branch_name)
orrepo.branch.create(branch_name)
Merging a branch would be more intuitive as
repo.merge(from=branch_name)
instead ofIt would be nice if you could do
repo.head.sha
in addition torepo.head.commit.hexsha
Because of the above I switched to repo.git.gitCommand to access the git commands directly.
Thanks for making the gitpython library!