<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitpython.git/git/objects, branch main</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>Revert the removal of Commit.trailers property.</title>
<updated>2023-04-23T13:16:53+00:00</updated>
<author>
<name>Twist</name>
<email>itsluketwist@gmail.com</email>
</author>
<published>2023-04-23T13:16:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=9ef07a731caf39684891bce5cc92c4e91829138d'/>
<id>9ef07a731caf39684891bce5cc92c4e91829138d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Specify encoding in Commit.trailer_list.</title>
<updated>2023-04-22T16:54:04+00:00</updated>
<author>
<name>Twist</name>
<email>itsluketwist@gmail.com</email>
</author>
<published>2023-04-22T16:54:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=ed36bd903e1fdf45c53b52dbcb1b2d8444965d98'/>
<id>ed36bd903e1fdf45c53b52dbcb1b2d8444965d98</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update Commit.trailer_list to return tuples.</title>
<updated>2023-04-22T16:47:08+00:00</updated>
<author>
<name>Twist</name>
<email>itsluketwist@gmail.com</email>
</author>
<published>2023-04-22T16:47:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=abde3eafd293e8fa2ef2dc22d58ba5d80f1702e9'/>
<id>abde3eafd293e8fa2ef2dc22d58ba5d80f1702e9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate Commit.trailers.</title>
<updated>2023-04-22T16:19:20+00:00</updated>
<author>
<name>Twist</name>
<email>itsluketwist@gmail.com</email>
</author>
<published>2023-04-22T16:19:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=78424b56654ad476da4bd2faf88d3875c5265e0d'/>
<id>78424b56654ad476da4bd2faf88d3875c5265e0d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add trailers_list and trailers_list methods to fix the commit trailers functionality. Update trailers tests.</title>
<updated>2023-04-21T21:16:32+00:00</updated>
<author>
<name>Twist</name>
<email>itsluketwist@gmail.com</email>
</author>
<published>2023-04-21T21:16:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=d2f7284189b5c1f867ebd58b0b879fa34406eefc'/>
<id>d2f7284189b5c1f867ebd58b0b879fa34406eefc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix timezone parsing functions for non-hour timezones</title>
<updated>2023-01-24T12:41:24+00:00</updated>
<author>
<name>James Cowgill</name>
<email>jcowgill@jcowgill.uk</email>
</author>
<published>2023-01-24T12:40:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=854a2d1f7fde596babe85ba9f76f282e9d53086d'/>
<id>854a2d1f7fde596babe85ba9f76f282e9d53086d</id>
<content type='text'>
The `utctz_to_altz` and `altz_to_utctz_str` functions fail to handle
timezones with UTC offsets that are not a multiple of one
hour. Rewrite them and add some unit tests.

Fixes #630
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `utctz_to_altz` and `altz_to_utctz_str` functions fail to handle
timezones with UTC offsets that are not a multiple of one
hour. Rewrite them and add some unit tests.

Fixes #630
</pre>
</div>
</content>
</entry>
<entry>
<title>fix files list on file rename</title>
<updated>2023-01-13T14:41:08+00:00</updated>
<author>
<name>Matteo Croce</name>
<email>teknoraver@meta.com</email>
</author>
<published>2023-01-11T18:13:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=c9b44d29d656e92bb08fa41bcc2c31b2a2a2607b'/>
<id>c9b44d29d656e92bb08fa41bcc2c31b2a2a2607b</id>
<content type='text'>
GitPython parses the output of `git diff --numstat` to get the
files changed in a commit.
This breaks when a commit contains a file rename, because the output
of `git diff` is different than expected.
This is the output of a normal commit:

    $ git diff --numstat 8f41a390bf9a^ 8f41a390bf9a
    30      5       test/test_repo.py

And this a commit containing a rename:

    $ git diff --numstat 185d847ec764^ 185d847ec764
    3       1       .github/workflows/{test_pytest.yml =&gt; Future.yml}

This can be triggered by this code:

    for commit in repo.iter_commits():
        print(commit.hexsha)
            for file in commit.stats.files:
                print(file)

Which will print for the normal commit:

    8f41a390bf9a54db6f85032bc56b453307b95451
    'test/test_repo.py'

And when there is a rename:

    185d847ec7647fd2642a82d9205fb3d07ea71715
    '.github/workflows/{test_pytest.yml =&gt; Future.yml}'

Additionally, when a path member is removed, the file list become
a list of strings, breaking even more the caller. This is in the
Linux kernel tree:

    $ git diff --numstat db401875f438^ db401875f438
    1       1       tools/testing/selftests/drivers/net/mlxsw/{spectrum-2 =&gt; }/devlink_trap_tunnel_ipip6.sh

and GitPython parses it as:

    db401875f438168c5804b295b93a28c7730bb57a
    ('tools/testing/selftests/drivers/net/mlxsw/{spectrum-2 =&gt; '
    '}/devlink_trap_tunnel_ipip6.sh')

Fix this by pasing the --no-renames option to `git diff` which ignores
renames and print the same output as if the file was deleted from the
old path and created in the new one:

    $ git diff --numstat --no-renames 185d847ec764^ 185d847ec764
    57      0       .github/workflows/Future.yml
    0       55      .github/workflows/test_pytest.yml
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GitPython parses the output of `git diff --numstat` to get the
files changed in a commit.
This breaks when a commit contains a file rename, because the output
of `git diff` is different than expected.
This is the output of a normal commit:

    $ git diff --numstat 8f41a390bf9a^ 8f41a390bf9a
    30      5       test/test_repo.py

And this a commit containing a rename:

    $ git diff --numstat 185d847ec764^ 185d847ec764
    3       1       .github/workflows/{test_pytest.yml =&gt; Future.yml}

This can be triggered by this code:

    for commit in repo.iter_commits():
        print(commit.hexsha)
            for file in commit.stats.files:
                print(file)

Which will print for the normal commit:

    8f41a390bf9a54db6f85032bc56b453307b95451
    'test/test_repo.py'

And when there is a rename:

    185d847ec7647fd2642a82d9205fb3d07ea71715
    '.github/workflows/{test_pytest.yml =&gt; Future.yml}'

Additionally, when a path member is removed, the file list become
a list of strings, breaking even more the caller. This is in the
Linux kernel tree:

    $ git diff --numstat db401875f438^ db401875f438
    1       1       tools/testing/selftests/drivers/net/mlxsw/{spectrum-2 =&gt; }/devlink_trap_tunnel_ipip6.sh

and GitPython parses it as:

    db401875f438168c5804b295b93a28c7730bb57a
    ('tools/testing/selftests/drivers/net/mlxsw/{spectrum-2 =&gt; '
    '}/devlink_trap_tunnel_ipip6.sh')

Fix this by pasing the --no-renames option to `git diff` which ignores
renames and print the same output as if the file was deleted from the
old path and created in the new one:

    $ git diff --numstat --no-renames 185d847ec764^ 185d847ec764
    57      0       .github/workflows/Future.yml
    0       55      .github/workflows/test_pytest.yml
</pre>
</div>
</content>
</entry>
<entry>
<title>fix/add allow_unsafe_* params in docstrings + fix typo</title>
<updated>2023-01-08T03:44:28+00:00</updated>
<author>
<name>FC Stegerman</name>
<email>flx@obfusk.net</email>
</author>
<published>2023-01-08T03:44:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=4110b613833fb4039847ac80ca8571f4ec8ebe50'/>
<id>4110b613833fb4039847ac80ca8571f4ec8ebe50</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Sphinx rendering errors</title>
<updated>2022-12-29T20:54:43+00:00</updated>
<author>
<name>Stephan Creutz</name>
<email>stephan.cr@gmx.de</email>
</author>
<published>2022-12-29T13:50:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=44636240a08bba4a13355a5a23543d537ff15576'/>
<id>44636240a08bba4a13355a5a23543d537ff15576</id>
<content type='text'>
These errors are mostly fixed by either adding blank lines or single
spaces for Sphinx documentation key words.

The commit solely includes documentation changes, no functional
changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These errors are mostly fixed by either adding blank lines or single
spaces for Sphinx documentation key words.

The commit solely includes documentation changes, no functional
changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>More tests</title>
<updated>2022-12-28T00:15:40+00:00</updated>
<author>
<name>Santos Gallegos</name>
<email>stsewd@proton.me</email>
</author>
<published>2022-12-28T00:15:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=c8ae33b9314a7d3716827b5cb705a3cd0a2e4a46'/>
<id>c8ae33b9314a7d3716827b5cb705a3cd0a2e4a46</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
