<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/gitpython.git/git/refs/remote.py, branch 3.1.26</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>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>Add type to symbolicreference.name()</title>
<updated>2021-07-31T14:51:34+00:00</updated>
<author>
<name>Yobmod</name>
<email>yobmod@gmail.com</email>
</author>
<published>2021-07-31T14:51:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=15d1c01c132bc6fbdb21146578df35a8f7e2195e'/>
<id>15d1c01c132bc6fbdb21146578df35a8f7e2195e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add types to refs/remote.py</title>
<updated>2021-07-19T15:53:14+00:00</updated>
<author>
<name>Yobmod</name>
<email>yobmod@gmail.com</email>
</author>
<published>2021-07-19T15:53:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=4b9ca921e8722f4e7359bea174b2c823059c5542'/>
<id>4b9ca921e8722f4e7359bea174b2c823059c5542</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>worktrees: make non-packed refs also work correctly.</title>
<updated>2017-08-22T21:12:54+00:00</updated>
<author>
<name>Peter Jones</name>
<email>pjones@redhat.com</email>
</author>
<published>2017-08-03T21:33:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=d1c40f46bd547be663b4cd97a80704279708ea8a'/>
<id>d1c40f46bd547be663b4cd97a80704279708ea8a</id>
<content type='text'>
Turns out aec58a9 did the right thing for /packed/ refs, but didn't work
correctly on /unpacked/ refs.  So this patch gives unpacked refs the
same treatment.

Without the fix here, the test added will cause this traceback:

======================================================================
ERROR: Check that we find .git as a worktree file and find the worktree
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pjones/devel/github.com/GitPython/git/test/lib/helper.py", line 92, in wrapper
    return func(self, path)
  File "/home/pjones/devel/github.com/GitPython/git/test/test_repo.py", line 938, in test_git_work_tree_dotgit
    self.assertIsInstance(repo.heads['aaaaaaaa'], Head)
  File "/home/pjones/devel/github.com/GitPython/git/util.py", line 893, in __getitem__
    raise IndexError("No item found with id %r" % (self._prefix + index))
IndexError: No item found with id 'aaaaaaaa'

Woops.

Things I've learned:
- test_remote doesn't work currently if you start on a branch.  I think
  it never did?
- Because of 346424da, all *sorts* of stuff in the test suite doesn't
  work if you name your development branch "packed-refs"
  (This seems like a bug...)

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Turns out aec58a9 did the right thing for /packed/ refs, but didn't work
correctly on /unpacked/ refs.  So this patch gives unpacked refs the
same treatment.

Without the fix here, the test added will cause this traceback:

======================================================================
ERROR: Check that we find .git as a worktree file and find the worktree
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pjones/devel/github.com/GitPython/git/test/lib/helper.py", line 92, in wrapper
    return func(self, path)
  File "/home/pjones/devel/github.com/GitPython/git/test/test_repo.py", line 938, in test_git_work_tree_dotgit
    self.assertIsInstance(repo.heads['aaaaaaaa'], Head)
  File "/home/pjones/devel/github.com/GitPython/git/util.py", line 893, in __getitem__
    raise IndexError("No item found with id %r" % (self._prefix + index))
IndexError: No item found with id 'aaaaaaaa'

Woops.

Things I've learned:
- test_remote doesn't work currently if you start on a branch.  I think
  it never did?
- Because of 346424da, all *sorts* of stuff in the test suite doesn't
  work if you name your development branch "packed-refs"
  (This seems like a bug...)

Signed-off-by: Peter Jones &lt;pjones@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ankostis-cygwin</title>
<updated>2016-10-22T09:11:25+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>byronimo@gmail.com</email>
</author>
<published>2016-10-22T09:11:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=caa0ea7a0893fe90ea043843d4e6ad407126d7b8'/>
<id>caa0ea7a0893fe90ea043843d4e6ad407126d7b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix some typos</title>
<updated>2016-10-20T22:20:32+00:00</updated>
<author>
<name>Santiago Castro</name>
<email>santi.1410@hotmail.com</email>
</author>
<published>2016-10-20T22:20:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=66c41eb3b2b4130c7b68802dd2078534d1f6bf7a'/>
<id>66c41eb3b2b4130c7b68802dd2078534d1f6bf7a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>src: reduce needless deps to `gitdb.util`</title>
<updated>2016-10-16T00:46:32+00:00</updated>
<author>
<name>Kostis Anagnostopoulos</name>
<email>ankostis@gmail.com</email>
</author>
<published>2016-10-15T11:42:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=b02662d4e870a34d2c6d97d4f702fcc1311e5177'/>
<id>b02662d4e870a34d2c6d97d4f702fcc1311e5177</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed some doc strings to build correctly with sphinx</title>
<updated>2015-01-14T16:49:33+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>byronimo@gmail.com</email>
</author>
<published>2015-01-14T16:47:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=6569c4849197c9475d85d05205c55e9ef28950c1'/>
<id>6569c4849197c9475d85d05205c55e9ef28950c1</id>
<content type='text'>
Fixes #7

[ci skip]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #7

[ci skip]
</pre>
</div>
</content>
</entry>
<entry>
<title>initial set of adjustments to make (most) imports work.</title>
<updated>2015-01-04T18:14:33+00:00</updated>
<author>
<name>Sebastian Thiel</name>
<email>byronimo@gmail.com</email>
</author>
<published>2015-01-04T18:14:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=f6aa8d116eb33293c0a9d6d600eb7c32832758b9'/>
<id>f6aa8d116eb33293c0a9d6d600eb7c32832758b9</id>
<content type='text'>
More to come, especially when it's about strings
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
More to come, especially when it's about strings
</pre>
</div>
</content>
</entry>
<entry>
<title>pep8 linting (trailing whitespace)</title>
<updated>2014-11-16T20:09:47+00:00</updated>
<author>
<name>Antoine Musso</name>
<email>hashar@free.fr</email>
</author>
<published>2014-11-16T20:09:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/gitpython.git/commit/?id=c8e70749887370a99adeda972cc3503397b5f9a7'/>
<id>c8e70749887370a99adeda972cc3503397b5f9a7</id>
<content type='text'>
W291 trailing whitespace
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
W291 trailing whitespace
</pre>
</div>
</content>
</entry>
</feed>
