<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitpython.git/git/repo, branch black-fmt</title>
<subtitle>github.com: gitpython-developers/GitPython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/'/>
<entry>
<title>reformat according to 'black' configuration file.</title>
<updated>2022-05-18T00:01:38+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>sebastian.thiel@icloud.com</email>
</author>
<published>2022-05-18T00:01:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=e530544546b2a4e5f00e8d9458bf1b895573ec41'/>
<id>e530544546b2a4e5f00e8d9458bf1b895573ec41</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Remove flake8 linting in favor of `black` formatting"</title>
<updated>2022-05-17T23:53:43+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>sebastian.thiel@icloud.com</email>
</author>
<published>2022-05-17T23:53:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=b4b238057e7913c93245b484bdd50131dafd71f3'/>
<id>b4b238057e7913c93245b484bdd50131dafd71f3</id>
<content type='text'>
This reverts commit a7c5d887e943aa51f2270e517954c024a8c01500.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit a7c5d887e943aa51f2270e517954c024a8c01500.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove flake8 linting in favor of `black` formatting</title>
<updated>2022-05-17T23:52:20+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>sebastian.thiel@icloud.com</email>
</author>
<published>2022-05-17T23:52:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=a7c5d887e943aa51f2270e517954c024a8c01500'/>
<id>a7c5d887e943aa51f2270e517954c024a8c01500</id>
<content type='text'>
`flake8` seems to dislike the formatting of black.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`flake8` seems to dislike the formatting of black.
</pre>
</div>
</content>
</entry>
<entry>
<title>Run everything through 'black'</title>
<updated>2022-05-17T23:43:53+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>sebastian.thiel@icloud.com</email>
</author>
<published>2022-05-17T23:43:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=21ec529987d10e0010badd37f8da3274167d436f'/>
<id>21ec529987d10e0010badd37f8da3274167d436f</id>
<content type='text'>
That way people who use it won't be deterred, while it unifies style
everywhere.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That way people who use it won't be deterred, while it unifies style
everywhere.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix various typos</title>
<updated>2022-05-07T19:59:10+00:00</updated>
<author>
<name>luz paz</name>
<email>luzpaz@pm.me</email>
</author>
<published>2022-05-07T19:59:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=dde3a8bd9229ff25ec8bc03c35d937f43233f48e'/>
<id>dde3a8bd9229ff25ec8bc03c35d937f43233f48e</id>
<content type='text'>
Found via `codespell -q 3 -S ./git/ext/gitdb,./test/fixtures/reflog_master,./test/fixtures/diff_mode_only,./test/fixtures/reflog_HEAD`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Found via `codespell -q 3 -S ./git/ext/gitdb,./test/fixtures/reflog_master,./test/fixtures/diff_mode_only,./test/fixtures/reflog_HEAD`</pre>
</div>
</content>
</entry>
<entry>
<title>Allow `repo.create_head`'s `commit` arg to be a `SymbolicReference`</title>
<updated>2022-04-01T23:51:51+00:00</updated>
<author>
<name>David Robertson</name>
<email>davidr@element.io</email>
</author>
<published>2022-04-01T14:28:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=0b33576f8e7add5671f8927dff228e7f92eec076'/>
<id>0b33576f8e7add5671f8927dff228e7f92eec076</id>
<content type='text'>
This matches the signature from `Head.create`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This matches the signature from `Head.create`.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix iter_commits comment, more in line with iter_items</title>
<updated>2022-02-23T23:45:16+00:00</updated>
<author>
<name>Houssam Kherraz</name>
<email>houssam.kherraz@kensho.com</email>
</author>
<published>2022-02-23T15:20:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=56f18ac6d9efc12d0aa9406a0b28c82fcf73aca5'/>
<id>56f18ac6d9efc12d0aa9406a0b28c82fcf73aca5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typing issues with delete_head and Remote.add</title>
<updated>2021-09-20T22:03:45+00:00</updated>
<author>
<name>Russ Allbery</name>
<email>eagle@eyrie.org</email>
</author>
<published>2021-09-20T20:53:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=5f4b4dbff46fae4c899f5573aea5a7266a41eeeb'/>
<id>5f4b4dbff46fae4c899f5573aea5a7266a41eeeb</id>
<content type='text'>
delete_head and Head.delete historically accept either Head objects
or a str name of a head.  Adjust the typing to match.  This
unfortunately requires suppressing type warnings in the signature of
RemoteReference.delete, since it inherits from Head but does not
accept str (since it needs access to the richer data of
RemoteReference).

Using assignment to make add an alias for create unfortunately
confuses mypy, since it loses track of the fact that it's a
classmethod and starts treating it like a staticmethod.  Replace
with a stub wrapper instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
delete_head and Head.delete historically accept either Head objects
or a str name of a head.  Adjust the typing to match.  This
unfortunately requires suppressing type warnings in the signature of
RemoteReference.delete, since it inherits from Head but does not
accept str (since it needs access to the richer data of
RemoteReference).

Using assignment to make add an alias for create unfortunately
confuses mypy, since it loses track of the fact that it's a
classmethod and starts treating it like a staticmethod.  Replace
with a stub wrapper instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the Git class type definition within Repo classmethods</title>
<updated>2021-08-18T01:10:38+00:00</updated>
<author>
<name>Michael Mulich</name>
<email>michael.mulich@gmail.com</email>
</author>
<published>2021-08-17T19:57:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=1207747121a79a0cd14426e595f5fe72ccc1d51a'/>
<id>1207747121a79a0cd14426e595f5fe72ccc1d51a</id>
<content type='text'>
Allow the GitCommandWrapperType definition to be used within the Repo
classmethods. This change follows the intended purpose as stated in
the code, "Subclasses may easily bring in their own custom types by
placing a constructor or type here."

The usecase that prompted this change has to do with
`GIT_SSH_COMMAND`. The goal is to setup a custom `Git` class with
knowledge of the value, something like as follows

```python
from git import Git as BaseGit, Repo as BaseRepo

class Git(BaseGit):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        # For example, assign the SSH command using the current flask
        # app's configured setting.
        self.update_environment(GIT_SSH_COMMAND=current_app.config['GIT_SSH_COMMAND'])

class Repo(BaseRepo):
    GitCommandWrapperType = _Git
```

With this change, the above example will allow the developer to use
`Repo.clone_from(...)` with the indended outcome. Otherwise the
developer will have two differing result when using `Repo(...)` vs
`Repo.clone_from(...)`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow the GitCommandWrapperType definition to be used within the Repo
classmethods. This change follows the intended purpose as stated in
the code, "Subclasses may easily bring in their own custom types by
placing a constructor or type here."

The usecase that prompted this change has to do with
`GIT_SSH_COMMAND`. The goal is to setup a custom `Git` class with
knowledge of the value, something like as follows

```python
from git import Git as BaseGit, Repo as BaseRepo

class Git(BaseGit):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        # For example, assign the SSH command using the current flask
        # app's configured setting.
        self.update_environment(GIT_SSH_COMMAND=current_app.config['GIT_SSH_COMMAND'])

class Repo(BaseRepo):
    GitCommandWrapperType = _Git
```

With this change, the above example will allow the developer to use
`Repo.clone_from(...)` with the indended outcome. Otherwise the
developer will have two differing result when using `Repo(...)` vs
`Repo.clone_from(...)`.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve type of repo.currently_rebasing_on()</title>
<updated>2021-08-02T22:30:27+00:00</updated>
<author>
<name>Yobmod</name>
<email>yobmod@gmail.com</email>
</author>
<published>2021-08-02T22:30:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=8b8aa16ee247c6ce403db7178d6c0f9c4ccd529c'/>
<id>8b8aa16ee247c6ce403db7178d6c0f9c4ccd529c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
