Igor Gnatenko
270dad8cd3
repository: SYMTYPE is constant in module tarfile, not in any class
...
Reference: https://github.com/libgit2/pygit2/issues/618
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2016-04-15 14:07:33 +02:00
Yu Jianjian
51915ddf0e
wrong order of the args in docstring of write_archive
2016-03-23 23:33:20 +08:00
Dustin Raimondi
f2864c0511
fix addition occurence of libgit2 version number
2016-03-11 10:24:53 -05:00
Dustin Raimondi
456bf59a88
bump libgit2 version number
2016-03-11 09:38:08 -05:00
J. David Ibáñez
22021c67fc
Release 0.24.0
0.24.0
v0.24.0
2016-03-05 23:21:05 +01:00
Carlos Martín Nieto
c1d831c98a
Update to libgit2 v0.24
2016-03-04 17:08:55 +01:00
J. David Ibáñez
391a3a74e9
Merge remote-tracking branch 'thom/tox'
2016-02-28 17:22:58 +01:00
J. David Ibáñez
141f0abe62
docs: add Repository.path_is_ignored
2016-02-28 14:26:19 +01:00
J. David Ibáñez
6b926494db
Merge remote-tracking branch 'ccope/gitignore'
2016-02-28 14:19:35 +01:00
Thom Wiggers
cde5b5170b
Allow testing with tox
2016-02-28 12:53:35 +01:00
Thom Wiggers
735510f14d
Fix repository crash if path passed is not a str
...
Tries to decode any non-string objects (such as bytes)
Introduces `six` as a dependency
Closes #588
2016-02-28 12:32:51 +01:00
Thom Wiggers
bc424e342f
Add unit tests for bytes and unicode Repositories
...
Add unit test for bytes repository paths
Add a unicode path test for Repositories
2016-02-28 12:32:41 +01:00
Thom Wiggers
3470fbc1c6
Add unit test for bytes repository paths
2016-02-27 23:44:05 +01:00
Carlos Martín Nieto
487fb5913e
Keep the describe dirty suffix string alive
2016-02-25 08:04:27 +01:00
J. David Ibáñez
33cf1a1ca2
travis: test with Python 3.5 too
2016-01-31 14:14:07 +01:00
Cam Cope
95ad6b1b0a
add method to check if a path is ignored
2016-01-25 02:54:00 -08:00
J. David Ibáñez
fa60e2233d
Release 0.23.3
v0.23.3
0.23.3
2016-01-01 19:18:34 +01:00
Chris Rebert
daff45f2d4
Document that Diff.patch can be None; fixes #467
2015-12-22 12:23:59 -07:00
Chason Chaffin
a5cfea21a7
Fix broken binary diff test
...
In a recent commit to libgit2, binary diffs were changed to have a
trailing empty line. This broke a test in test_diff because it compares
it directly against the string. I've added the extra line to the
expected output and the test now passes correctly.
2015-12-15 17:20:50 -08:00
Noah Fontes
99dfce9ab8
Add support for Repository.describe(...).
2015-12-05 23:22:37 -08:00
J. David Ibáñez
7a8474cd44
Change Signature default encoding to UTF-8
...
Fixes #581
2015-11-15 19:46:50 +01:00
Carlos Martín Nieto
91bb93d266
Fix create_blob_fromiobase with pypy
...
The file object is passed to us, so we never incremented
its refcount. We shouldn't decrement it on exit.
2015-10-31 16:57:20 +01:00
J. David Ibáñez
13f4ddec1d
Fix create_blob_fromiobase with Python 2.7
2015-10-25 19:58:48 +01:00
J. David Ibáñez
f92d38e25f
Merge remote-tracking branch 'frutiger/blob_from_iobase' into blob_from_io_base
2015-10-25 13:04:49 +01:00
J. David Ibáñez
70edbf256a
Update copyright years
2015-10-11 18:48:59 +02:00
J. David Ibáñez
203335bd63
Trying to fix install with pip
2015-10-11 18:42:30 +02:00
J. David Ibáñez
64150d3535
Release 0.23.2
v0.23.2
2015-10-11 17:49:17 +02:00
J. David Ibáñez
d25a0d61de
Fix error introduced accidentally in previous commit
2015-10-11 12:08:53 +02:00
J. David Ibáñez
f5aa1829ac
Do not use hasattr, not robust
...
In Python versions older than 3.2 hasattr is not robust as it masks real
errors. And usually is not efficient as a call to hasattr is often
followed by another call to getattr. It is best to avoid using it
completely.
See https://docs.python.org/3/whatsnew/3.2.html#other-language-changes
2015-10-11 11:58:07 +02:00
J. David Ibáñez
9db8737364
Update changelog
2015-10-11 11:06:22 +02:00
Nicolás Sanguinetti
cf439e4286
List OpenSSL as a dependency in the docs
2015-10-06 14:44:18 -03:00
Nicolas Dandrimont
eadc2a320f
tag._message: avoid NULL pointer dereference
...
A tag message can be empty. In that case, git_tag_message returns
NULL. PyBytes_FromString doesn't check its argument for nullness, and
therefore accessing _message on a tag with an empty message segfaults
Python.
2015-10-05 19:08:56 +02:00
Nicolas Dandrimont
2b083a1509
Add _name attribute to TreeEntry
...
This mirrors the _message attribute for Tag, which gives you the raw
bytes from the entry name. Useful to parse repos where some filenames
aren't encoded as utf-8, such as https://github.com/wuts/earthquake .
2015-09-28 18:24:48 +02:00
J. David Ibáñez
681c7d4341
Fixing pip install pygit2
...
Regression in the latest release, "pip install pygit2" fails if cffi is
not already installed. Should be fixed with this change, not tested.
2015-09-27 14:03:32 +02:00
J. David Ibáñez
8a66da1278
docs: remove reference to old Remote.credentials
2015-09-27 13:57:30 +02:00
J. David Ibáñez
0d2bc05708
Merge remote-tracking branch 'carlos/diff-delta'
2015-09-27 13:55:13 +02:00
Carlos Martín Nieto
b8e6852d26
Add some missing fields to DiffFile's docs
2015-09-27 03:09:25 +02:00
Carlos Martín Nieto
563cb9018e
Bring back the certificate check callback
...
This was implemented for clone, but not for fetch or push, so it was
deleted during the conversion, which shows why we need to unify these
callback structures.
2015-09-27 02:43:50 +02:00
Carlos Martín Nieto
ac2e363d04
Allow setting credentials and certificate in callback ctor
...
This allows for a less verbose way of setting one-liners as these
callbacks.
2015-09-27 02:43:50 +02:00
Carlos Martín Nieto
ab97c08f72
Make clone take the callbacks object
...
This lets use the same callbacks for fetch and clone; it also fills in
the callbacks which the clone function did not support.
2015-09-27 02:43:50 +02:00
Carlos Martín Nieto
7b97ade6ce
Move remote callbacks to use a class for callbacks
...
This represents what's going on much better than the remnants from the
older methods. What we do is pass a list of callbacks to libgit2 for it
to call, and they are valid for a single operation, not for the remote
itself.
This should also make it easier to re-use callbacks which have already
been set up.
2015-09-27 02:43:50 +02:00
J. David Ibáñez
e4ef8ea5c2
Release 0.23.1
v0.23.1
2015-09-26 20:49:13 +02:00
J. David Ibáñez
50f4b20e7d
Update changelog
2015-09-26 13:30:24 +02:00
Guille -bisho-
802976535a
Add support for GIT_DIFF_SHOW_BINARY
...
Adding the binary diff flag GIT_DIFF_SHOW_BINARY to pygit2.
libgit2 0.23.0 already supports this constant to be used in diff
flags and produces properly formated binary diffs.
2015-09-23 16:30:19 -07:00
J. David Ibáñez
ade211de60
tests: fix warning
2015-09-10 11:30:37 +02:00
J. David Ibáñez
8911416d4f
Merge remote-tracking branch 'olasd/add-type-to-treeentry'
2015-09-10 11:15:50 +02:00
Nicolas Dandrimont
4b607b8256
Re-enable tests on PyPy
2015-09-09 23:25:15 +02:00
Nicolas Dandrimont
ec23762c09
Add support for cffi-pre-1.0
2015-09-09 23:20:08 +02:00
Nicolas Dandrimont
ac7738bbb3
Add type attribute to TreeEntry
...
This allows complete iteration and rebuilding of a tree without hitting
the object store for every entry.
2015-09-09 21:41:00 +02:00
J. David Ibáñez
29a8dbc6b2
Temporarily deactivate travis for PyPy and PyPy3
...
Until travis supports PyPy 2.6, and there is a new release of PyPy3
Update docs regarding cffi and PyPy
2015-09-03 09:24:58 +02:00