534 Commits

Author SHA1 Message Date
J. David Ibáñez
48b906cf2c Merge remote-tracking branch 'richo/bugs/compiler_warnings' 2013-01-05 10:30:47 +01:00
richo
4b42efbc8a return NULL over -1 2013-01-05 11:41:26 +11:00
richo
6f6e1c2556 Use correct prototypes 2013-01-05 11:41:26 +11:00
richo
ce6663eea5 Shamelessly add richo to AUTHORS 2013-01-05 11:15:50 +11:00
richo
badb7f435d Always decref the new string. Don't set err. 2013-01-05 02:20:40 +11:00
richo
63d319895c Don't leave dangling references to oid strings 2013-01-04 23:03:03 +11:00
richo
b65244282e Handle errors while building the list gracefully 2013-01-04 23:01:19 +11:00
richo
77224e434b Ensure that odb is always freed 2013-01-04 22:55:56 +11:00
richo
3058181e14 Implement Iterator protocol on Repository
Uses a stupid implementation that builds a list in memory and returns
it's iterator.
2013-01-04 13:51:23 +11:00
J. David Ibáñez
5d5e019ab4 Merge remote-tracking branch 'cholin/added_api_link' 2012-12-21 17:45:54 +01:00
Nico von Geyso
72639d800c added pygit api link 2012-12-21 16:28:32 +01:00
David Sanders
016c5d63be Correct rst syntax errors in README.rst 2012-12-19 16:02:26 -07:00
J. David Ibáñez
d9abb1af59 Update to libgit2 changes in git_diff_* functions
See libgit2's 56c72b759c3ad commit
2012-12-19 13:46:54 +01:00
W. Trevor King
1e8b84a5b5 README.rst: document non-standard linking on *nix
There have been a few comments on pygit2's issue tracker about linking
problems on Unix/Linux [1].  David suggested that a README comment
might be in order, so here it is.

I think that people new to *nix linking should probably just stick to
installing to standard locations, since a short README blurb is never
going to do justice to a subject that probably deserves it's own
chapter.  Instead of explaining what's going on, I just give a quick
recipe for building and installing libgit2 under /usr/local (the
default location), and then building pygit2 against that libgit2
(using RUNPATH).

[1]: https://github.com/libgit2/pygit2/issues/134
2012-12-18 16:45:14 -05:00
W. Trevor King
0acb7df564 setup.py: Add LIBGIT2_LIB to override the library search path
I build libgit2 in a `build/` subdirectory of a Git checkout, and
never bother installing it.  I'd like to link pygit2 against it there,
but LIBGIT2 assumes libgit2.so will be in the default library search
path or $LIBGIT/lib.  This patch adds LIBGIT2_LIB, a new environment
variable for overriding the additional library search paths.

An alternative to this patch is to set LDFLAGS="-L..." explicitly
before building pygit2.  I've avoided that approach here minimize the
difference between configuring this library path explicitly, and
configuring implicitly via LIBGIT2.
2012-12-13 08:18:36 -05:00
J. David Ibáñez
ca2c0d75c5 Update to latest libgit2
Specifically to changes made by ligbit2's pull-request number #1115:

https://github.com/libgit2/libgit2/pull/1115
2012-12-12 18:58:30 +01:00
Nico von Geyso
e4097c5de5 Fix uninitialized variable 2012-11-28 18:13:56 +01:00
Nico von Geyso
a511f299bb fixex api changes of libgit2 in 64c5112 2012-11-28 18:10:07 +01:00
delanne
0406841533 - thanks to Martin R. Hufsky for the patch for git_diff_find_similar
- I updated the unittest (they failed with the patch), and added a short unittest which emulates --find-copies-harder
2012-11-26 12:18:57 +01:00
Nico von Geyso
20fb789e11 fixed typo 2012-11-22 16:33:40 +01:00
Nico von Geyso
6b3607cf95 only use error message if giterr_last() is not null
exptected errors in libgit2 must not set a git_error.
2012-11-22 15:47:53 +01:00
Nico von Geyso
dbf468b2ec correct error handling for errors other than GIT_ENOTFOUND 2012-11-20 21:02:08 +01:00
Nico von Geyso
3e0c6f521d new config file has to exist (change in libgit2 - see 270160b) 2012-11-19 23:14:27 +01:00
Nico von Geyso
5496028150 throw an IOError instead of KeyError, if git_config_open_ondisk() fails 2012-11-19 23:13:02 +01:00
Nico von Geyso
64bb6efc2b added Error_set_exc() for throwing individual Exceptions 2012-11-19 23:12:12 +01:00
Nico von Geyso
b2359200bb revlog iteration will start with last commit, not the first one 2012-11-19 23:11:18 +01:00
J. David Ibáñez
af1c6ca10d Merge remote-tracking branch 'cholin/repo_state' 2012-11-16 16:55:34 +01:00
Nico von Geyso
af0424e75d Merge branch 'master' into parameter_order 2012-11-16 13:07:21 +01:00
Nico von Geyso
5262c9e23b fixed parameter order for diff functions (libgit2) 2012-11-16 13:04:47 +01:00
Nico von Geyso
88de08288c coding style - use 4 spaces for intendation and a space before keywords 2012-11-15 19:34:52 +01:00
Nico von Geyso
c615ca29cd fixed refcount error
use Py_RETURN_TRUE instead of return Py_True and Py_RETURN_FALSE instead of return Py_False.
Otherwise there will be refcount errors.
2012-11-15 19:32:25 +01:00
J. David Ibáñez
c55881f9ce Fix compile warnings 2012-11-14 18:55:28 +01:00
J. David Ibáñez
40751b62b3 style: remove tabs and trailing white-space 2012-11-14 18:08:08 +01:00
J. David Ibáñez
2ac913244d Merge remote-tracking branch 'delanne/memleak' 2012-11-14 17:54:00 +01:00
delanne
b84e8dc9a0 Fix the issue reported by Jdavid 'Here you are freeing the path and then you use it.' 2012-11-12 10:25:55 +01:00
J. David Ibáñez
81078e2cf7 Merge remote-tracking branch 'delanne/diff_opts' 2012-11-11 19:52:56 +01:00
delanne
8216dad986 Fix issue reported by Travis for Python3.1 and Python3.2 2012-11-09 16:23:11 +01:00
delanne
783025d327 Fix: "The opt variable is not used in the loop" 2012-11-09 14:55:20 +01:00
delanne
9ffbe7b2ce Fix memleak + refcount issues 2012-11-09 14:45:07 +01:00
delanne
c6e06d60d1 Fix: uncomment a commented line 2012-11-08 12:44:50 +01:00
delanne
8827ea2312 Fix memory leak reported by valgrind 2012-11-08 12:39:26 +01:00
delanne
1b7e61145e Merge remote-tracking branch 'upstream/master' into diff_opts 2012-11-05 13:38:43 +01:00
Nico von Geyso
e3a71d4f41 removed unused variable in repository.c 2012-11-04 21:49:15 +01:00
Nico von Geyso
2da04cab2d Merge branch 'master' into create_reference_refactoring 2012-11-04 21:45:41 +01:00
Nico von Geyso
36fb7215c7 Merge branch 'master' into head_is_detached 2012-11-04 21:32:59 +01:00
J. David Ibáñez
ad7b86d9e6 Merge pull request #145 from cholin/fixed_tests
Fixed tests
2012-11-04 12:28:57 -08:00
Nico von Geyso
3887c8f1c5 fixed api changes: git_tree_create_fromindex to git_index_write_tree 2012-11-04 13:03:05 +01:00
Nico von Geyso
929b775241 added Index_remove 2012-11-04 12:54:10 +01:00
Nico von Geyso
225f7bd175 added Index_remove 2012-11-04 12:53:32 +01:00
Nico von Geyso
7dbd08edc2 added in Repository: is_empty, is_bare, head_is_orphaned and head_is_detached 2012-11-01 16:17:51 +01:00