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
Sheeo
f28a199351
Install cffi>=1 on travis
2015-08-28 19:51:39 +02:00
Michael Sondergaard
becc265c78
Don't use the deprecated cffi.verify by default
...
Instead this does what is recommend in the CFFI docs here: https://cffi.readthedocs.org/en/latest/cdef.html?highlight=verify#out-of-line-api
This also means building the cffi extension is neatly handled by cffi's setuptools integration itself, so we can delete the code in setup.py that used to do this.
2015-08-28 19:36:58 +02:00
David Six
25d02259df
Fix: pass push_opts to git_remote_push
2015-08-26 11:15:47 -04:00
J. David Ibáñez
27e3450232
Get ready to release v0.23.0
v0.23.0
0.23.0
2015-08-14 16:56:30 +02:00
Carlos Martín Nieto
4f00dad086
Don't throw if there is no merge base
...
Not finding a merge base between two commits isn't an exceptional case,
it's just a different result.
2015-07-31 10:50:15 +02:00
Santiago Perez De Rosso
9dd74dd593
add doc for DiffLine
2015-07-16 11:35:46 -04:00
J. David Ibáñez
c5eae8942d
Merge remote-tracking branch 'carlos/development'
2015-07-12 12:20:27 +02:00
J. David Ibáñez
2fdfdcdc4b
Get ready to release v0.22.1
v0.22.1
2015-07-12 12:04:58 +02:00
Carlos Martín Nieto
7ff6f6efb7
Add repr output for TreeEntry
...
When iterating over a tree, its entries show up as objects with an
address, which makes it hard to distinguish.
Add a method to handle repr and make it easier to play around with them
in the console.
2015-07-07 14:06:35 +02:00
Carlos Martín Nieto
f09bbe79a8
Update installation docs with v0.23
2015-07-06 18:49:20 +02:00
Carlos Martín Nieto
81520c9c62
Update to libgit2 v0.23
2015-07-06 18:49:20 +02:00
J. David Ibáñez
6939b9b203
Fix indent error
2015-06-16 20:06:29 +02:00
Justin Clift
cc898d29e5
Typo fix
2015-06-16 17:13:50 +01:00
J. David Ibáñez
060b3fbaec
Update changelog
2015-06-05 19:26:30 +02:00
vtemian
5469f0c891
Remove items from index, based on stage
2015-06-03 17:31:59 +03:00
Carlos Martín Nieto
74b81bf180
Add support for querying attributes
...
Expose a method in the repository which allows querying an attribute for
a file and converts the result to the python equivalent.
2015-05-20 20:56:40 +02:00
J. David Ibáñez
e46119838b
Merge remote-tracking branch 'rmoehn/cherry-pick-cleanup'
2015-05-03 11:37:57 +02:00
J. David Ibáñez
8a196f656b
Merge remote-tracking branch 'cjwatson/merge-index-path-refs'
2015-05-03 11:33:28 +02:00
J. David Ibáñez
deb50536f0
docs: remove manual singatures from py files
...
These are only needed in C code. With Python files the signatures are
automatically generated. The only drawback is the return value is not
included in the signature, so document it in the body of the docstring.
2015-05-03 11:16:17 +02:00
J. David Ibáñez
6da3d8f8a8
Fix a couple of warnings shown by pyflakes
2015-05-03 11:15:51 +02:00
J. David Ibáñez
52dd956896
Merge remote-tracking branch 'rmoehn/optional-args'
2015-05-03 10:13:55 +02:00
J. David Ibáñez
1f98ba6495
docs: fix build errors
2015-05-03 10:07:00 +02:00
J. David Ibáñez
d63c2d4fd7
Merge remote-tracking branch 'carlos/diff-stats'
2015-04-29 10:47:21 +02:00
Carlos Martín Nieto
5b50579790
Add a recipe for git clone --mirror
...
It's not necessarily obvious how to perform a mirror, so add a recipe
which tells what git does as well as provide example code of how to
perform the same steps in pygit2.
2015-04-28 19:53:39 +02:00
Carlos Martín Nieto
42d81e33ec
Add DiffStats
...
This wraps git_diff_stats and can be retrieved through a Diff. It
includes a formatting method.
2015-04-28 16:21:56 +02:00