1074 Commits

Author SHA1 Message Date
djmattyg007
14bcce0dcf Add test for checking out local branches with a Branch object.
This differs from the only other test which uses a Reference object.
This test only succeeds because of the previous commit.
2014-08-23 11:52:58 +10:00
djmattyg007
21efebd305 Clarify return types from Repository.{create,lookup}_branch() 2014-08-23 11:29:27 +10:00
djmattyg007
629eea01e9 Allow objects of type Branch to be passed to Repository.checkout()
Branch inherits from Reference, so there's no reason why we shouldn't be
able to pass a Branch object.
2014-08-23 11:23:17 +10:00
djmattyg007
4a53b2c8ae Add note about including remote name when looking up remote branch 2014-08-23 11:15:49 +10:00
djmattyg007
e4315aa0a5 Add note about default behaviour of Repository.listall_branches() 2014-08-23 10:56:48 +10:00
djmattyg007
9718fd8c32 Add note about checkout('HEAD') being identical to checkout_head() 2014-08-23 01:08:32 +10:00
djmattyg007
2bd73f3bdf Clear up confusion regarding accepted types for Repository.checkout() refname parameter 2014-08-23 01:06:30 +10:00
J. David Ibáñez
82b342937f Merge remote-tracking branch 'opebeat/cffi-install-fix' 2014-08-21 19:31:10 +02:00
Ron Cohen
acca2726df BuildWithDLLs now inherits from CFFIBuild to *theoretically* fix windows. 2014-08-21 18:42:27 +02:00
Ron Cohen
a459712fde Forgot the setup_requires argument. 2014-08-21 16:00:40 +02:00
Ron Cohen
4056ebf53b Fixed the chicked-and-egg problem with CFFI in setup.
This still needs some work in order to fix the problem
under windows. I have no windows machine here to test it.
2014-08-21 15:48:25 +02:00
J. David Ibáñez
99f295e2e8 docs: fix reST errors 2014-08-20 17:00:33 +02:00
J. David Ibáñez
f0631868af Merge remote-tracking branch 'djmattyg007/doc_updates' 2014-08-20 16:34:01 +02:00
Matthew Duggan
0813ec7923 Fix use of skipIf. 2014-08-18 21:17:36 +09:00
Matthew Duggan
bedd9ee315 Don't test refcounts in pypy as they don't make sense there 2014-08-18 21:13:03 +09:00
Matthew Duggan
99433ca66a Hard-code callback version because we'll need to change the defs if it changes. 2014-08-18 21:12:34 +09:00
Matthew Duggan
9ce6a26db3 Add some tests for refcounts to check for leaks 2014-08-18 18:23:10 +09:00
Matthew Duggan
794dbe7b9c set callbacks just before fetch, clear them after (fixes #403). 2014-08-18 18:22:45 +09:00
Mathieu Bridon
6c4e1d093b Fix syntax error 2014-08-12 11:25:17 +02:00
djmattyg007
d752e8550b Further clarified purpose of user field in docstring for Keypair class 2014-08-12 08:43:05 +10:00
djmattyg007
f787a52e66 Document list of parameters for the Keypair credential callback.
Includes a couple of small grammar fixes to other docstrings.
2014-08-10 12:39:27 +10:00
djmattyg007
f98dc8264a Dynamically get version component of build directory for building sphinx docs
This almost certainly isn't perfect, but it's a big step up and should
work on (at least) any 32-bit or 64-bit version of python2 or python3
running on Linux (rather than just 64-bit python2.7 on Linux).
2014-08-10 12:39:27 +10:00
J. David Ibáñez
f5765b0968 Get ready for 0.21.2 release v0.21.2 2014-08-09 16:56:13 +02:00
J. David Ibáñez
ed26ed3944 Get back IndexEntry.oid for backwards compatibility 2014-07-30 12:58:27 +02:00
J. David Ibáñez
3ccba38725 Fix regression in v0.21.1, IndexEntry.path returns str
And str in Python 2 means bytes. Recall, we are supposed to give a
native experience to both Python 2 and 3 users.
2014-07-28 18:02:24 +02:00
J. David Ibáñez
be807a1dfc internal: split code for Python 2/3 compatibility 2014-07-28 17:51:51 +02:00
J. David Ibáñez
7df11bf817 internal: rename "to_str" to "to_bytes" for clarity 2014-07-28 17:30:38 +02:00
J. David Ibáñez
9882044a87 Merge remote-tracking branch 'ArnoVanLumig/master' 2014-07-28 12:07:11 +02:00
Carlos Martín Nieto
612639a50f oid: do not load the object when expanding
We now have a function which lets us expand an id prefix by checking for
existence and uniqueness instead of loading the object with that id.
2014-07-26 15:03:37 +02:00
Arno van Lumig
e31f0acf97 Parsed parameters directly passed into options object 2014-07-25 11:40:03 +02:00
Arno van Lumig
eb001f0b98 Implemented parameters for Diff.find_similar()
Diff.find_similar now supports the parameters that are exposed by
libgit2's git_diff_find_similar.

Parameters supported are rename_threshold, copy_threshold,
rename_from_rewrite_threshold, break_rewrite_threshold and rename_limit
2014-07-25 08:29:16 +02:00
Carlos Martín Nieto
2a429aae98 config: only return the config key in iteration
At its core, the config is a key-value storage with peculiar key
equality rules. Make it behave more like a python dictionary and return
the key on iteration.
2014-07-24 18:43:54 +02:00
Carlos Martín Nieto
e437e13182 config: decode the string with utf-8 on getitem
This is what we do elsewhere, but this was missed.
2014-07-24 18:43:18 +02:00
J. David Ibáñez
9109ba099c Update list of authors 2014-07-22 18:57:16 +02:00
J. David Ibáñez
a0a70c3264 Get ready for 0.21.1 release v0.21.1 2014-07-22 18:15:20 +02:00
J. David Ibáñez
5d01300956 Testing a docstring formating that's nice with pydoc 2014-07-22 17:35:23 +02:00
J. David Ibáñez
57e25c1a4a index: replace has_conflicts by conflicts returning None 2014-07-22 10:50:30 +02:00
J. David Ibáñez
bcce5c13ba Start changelog for the upcoming release 2014-07-19 13:00:35 +02:00
J. David Ibáñez
c51165e379 Add Repository.state_cleanup to the docs 2014-07-19 12:59:26 +02:00
J. David Ibáñez
4c375907c5 Make checkout to fail on unexpected options 2014-07-19 12:22:34 +02:00
J. David Ibáñez
fdfda17121 docs: review the installation documentation 2014-07-18 20:01:20 +02:00
J. David Ibáñez
794e82c799 Add some error checks 2014-07-15 21:10:51 +02:00
J. David Ibáñez
b65d3e6db5 Merge remote-tracking branch 'vtemian/more-pep8' 2014-07-15 21:00:58 +02:00
Carlos Martín Nieto
172cf8e9aa Update the README for libgit2's change in master branch
Provide instructions to use the release, rather than the master branch,
which is now where development happens.
2014-07-14 19:56:28 +02:00
vtemian
93369b0a7c Cleanup a little bit the code 2014-07-14 20:21:24 +03:00
Carlos Martín Nieto
763b571c84 checkout: add support for overriding the target directory 2014-07-11 14:49:56 +02:00
Carlos Martín Nieto
af38211d0c checkout: move the code to cffi
As part of this, make the strategy part of **kwargs, in preparation for
supporting more options.
2014-07-11 14:42:29 +02:00
J. David Ibáñez
d2a62c5268 Merge remote-tracking branch 'carlos/cffi-index' 2014-07-10 15:52:30 +02:00
J. David Ibáñez
5fad06acff Merge remote-tracking branch 'vtemian/sphinx' 2014-07-10 12:47:34 +02:00
J. David Ibáñez
986128aa47 Merge remote-tracking branch 'carlos/doc-fixup' 2014-07-10 12:37:32 +02:00