Movatterモバイル変換


[0]ホーム

URL:


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

Feature request: More intuitive commands #901

Open
@caleb15

Description

@caleb15

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 asrepo.merge(from=branch_name) instead of

# prepare a mergemaster = cloned_repo.heads.master                         # right-hand side is ahead of us, in the futuremerge_base = cloned_repo.merge_base(new_branch, master)   # allwos for a three-way mergecloned_repo.index.merge_tree(master, base=merge_base)     # write the merge result into indexcloned_repo.index.commit("Merged past and now into future ;)",                         parent_commits=(new_branch.commit, master.commit))

It would be nice if you could dorepo.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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp