GitPython
GitPython copied to clipboard
GitPython is a python library used to interact with Git repositories.
https://github.com/gitpython-developers/GitPython/blob/c6e0a6cb5c70efd0899f620f83eeebcc464be05c/git/objects/util.py#L131 https://github.com/gitpython-developers/GitPython/blob/f3265bd8beb017890699d093586126ff8af4a3fe/git/objects/commit.py#L348 It doesn't work. I have tried passing a datetime object into `commit`, I have tried passing an integer timestamp, I have tried converting it into a string (both...
Hi - I am having a problem with apache using mod_wsgi and python 3.6 on RedHat 7.2 using the gitpython package .... specifically the push ... I get no errors...
Example code: ```python object_parents = defaultdict(set) for o in repo.git.rev_list('--objects', '-g', '--no-walk', '--all').split('\n'): name = o.split()[0] obj = name_to_object(repo, name) print(obj.hexsha) if type(obj) == git.objects.tree.Tree: for b in obj.blobs: object_parents[b.binsha].add(obj.binsha)...
A `.mailmap` file is used to map commit author info where committers use multiple names or email addresses to a single unique name/email. It is usually located in the root...
After adding a new file I made a diff vs NULL_TREE, I have the expected behaviour change_type == 'A'. When making the diff of the same commit vs the parent...
When I do: ```python log = head.log() ``` I sometimes get this error: ``` Traceback (most recent call last): File "/usr/local/bin/gg", line 11, in sys.exit(cli()) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in...
``` tals $ git config foo.BarBaz 2 tals $ git config foo.BarBaz 2 tals $ git config foo.BarBaz 2 tals $ git config -l | grep -i foo.BarBaz foo.barbaz=2 tals...
Imagine I want to merge a feature branch into master, when that feature branch contains changes that conflict with master, e.g.: ``` commit 87ef22e9631701222b8a461080484c1ee880c23c (HEAD -> master) Merge: 895064f 54c3d06...
I've made a small tool to help me manage tens of repos in one go, e.g. status, checkout, and pull. I'm having an issue when printing details of the last...
GitConfigParser doesn't ignore comments at the end of the line. So, with a configuration file with the next content: ~~~~ [alias] a = add # add ~~~~ `'add # add'`...