<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitpython.git/git/repo/base.py, branch 3.1.29</title>
<subtitle>github.com: gitpython-developers/GitPython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/'/>
<entry>
<title>feat(blame): Support custom `rev_opts` for blame</title>
<updated>2022-08-31T05:04:34+00:00</updated>
<author>
<name>Joseph Hale</name>
<email>me@jhale.dev</email>
</author>
<published>2022-08-30T06:45:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=18a79d8028f934f8f78da33de3b0523fc7d1df47'/>
<id>18a79d8028f934f8f78da33de3b0523fc7d1df47</id>
<content type='text'>
The `git blame` CLI offers a repeated `-C` option that can be used to detect
lines that move within/between files. While a slower operation, it yields more
accurate authorship reports.
https://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Cltnumgt

While GitPython does enable passing custom kwargs to the command line `git`
invocation, the fact that kwargs is a dictionary (i.e. no duplicate keys) means
that there was no way to request the `-C` option in `git blame` more than once.

This commit adds an optional `rev_opts` parameter to the `blame` method which
accepts a list of strings to propagate to the CLI invocation of `git blame`. By
using a `List[str]` for `rev_opts`, users of GitPython can pass now the `-C`
option multiple times to get more detailed authorship reports from `git blame`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `git blame` CLI offers a repeated `-C` option that can be used to detect
lines that move within/between files. While a slower operation, it yields more
accurate authorship reports.
https://git-scm.com/docs/git-blame#Documentation/git-blame.txt--Cltnumgt

While GitPython does enable passing custom kwargs to the command line `git`
invocation, the fact that kwargs is a dictionary (i.e. no duplicate keys) means
that there was no way to request the `-C` option in `git blame` more than once.

This commit adds an optional `rev_opts` parameter to the `blame` method which
accepts a list of strings to propagate to the CLI invocation of `git blame`. By
using a `List[str]` for `rev_opts`, users of GitPython can pass now the `-C`
option multiple times to get more detailed authorship reports from `git blame`.
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: add typerror exception to active_branch method</title>
<updated>2022-08-20T11:49:16+00:00</updated>
<author>
<name>Patrick Gerard</name>
<email>info@content-baer.de</email>
</author>
<published>2022-08-20T11:37:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=7dda25eafa80fc6cb2dd0a21f992205119270007'/>
<id>7dda25eafa80fc6cb2dd0a21f992205119270007</id>
<content type='text'>
docs: add typerror exception to active_branch method

fix: sphinx syntax

add author
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
docs: add typerror exception to active_branch method

fix: sphinx syntax

add author
</pre>
</div>
</content>
</entry>
<entry>
<title>STY: Remove import of now-unused function</title>
<updated>2022-06-11T14:01:53+00:00</updated>
<author>
<name>DWesl</name>
<email>22566757+DWesl@users.noreply.github.com</email>
</author>
<published>2022-06-11T14:01:53+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=21113a81560dfea6f2eea5f50ceb5e87e9097c82'/>
<id>21113a81560dfea6f2eea5f50ceb5e87e9097c82</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Convert to native path before checking if absolute</title>
<updated>2022-06-11T01:35:40+00:00</updated>
<author>
<name>DWesl</name>
<email>22566757+DWesl@users.noreply.github.com</email>
</author>
<published>2022-06-11T01:35:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=5d874ddc5a6cab35812e1ef395c18216f9399425'/>
<id>5d874ddc5a6cab35812e1ef395c18216f9399425</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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://trove.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>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://trove.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://trove.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://trove.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://trove.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://trove.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>
</feed>
