J. David Ibáñez
19c9a895d5
tests: find out test modules automatically
2013-05-26 13:49:08 +02:00
J. David Ibáñez
74a1fdab60
Fixing coding style with the help of pep8 (wip)
2013-05-26 10:32:05 +02:00
J. David Ibáñez
c3335f92ee
tests: get nice error when test module is broken
2013-05-26 10:26:10 +02:00
Daniel Rodríguez Troitiño
d388d1ab21
Fix memory leak in TreeBuilder_get
2013-05-26 01:00:33 +02:00
Daniel Rodríguez Troitiño
a626b3c297
Fix memory leak in Repository_head__set__
2013-05-26 01:00:02 +02:00
J. David Ibáñez
98551e3e41
Updae list of authors
2013-05-24 23:30:27 +02:00
J. David Ibáñez
5904a8752c
docs: fix warning
2013-05-24 23:10:55 +02:00
J. David Ibáñez
5e9c429083
Remove trailing whitespace
2013-05-24 23:08:08 +02:00
J. David Ibáñez
7db21d132a
Revert to use "self->repo" ( #228 )
2013-05-24 23:04:16 +02:00
J. David Ibáñez
f075aa3665
Fix some "errors" found by pyflakes
2013-05-24 21:34:10 +02:00
Nico von Geyso
ebf041daea
Merge pull request #229 from cholin/features/diff_refactoring
...
refactoring Tree.diff(), Index.diff() into seperate methods and added a Repository.diff() method.
2013-05-22 07:04:53 -07:00
Nico von Geyso
d593437306
Removed: unused variables in tree.c (thanks @delanne)
2013-05-21 14:11:37 +02:00
Nico von Geyso
b50a8d05fe
Fixed: Memleak in Repository_config__get__()
...
There was a memleak because of a missing Py_INCREF() for self->config. We need 2 Py_INCREF() here
because one is returned and one is kept internally. Thanks @delanne for reporting and providing
the patch.
2013-05-21 14:06:44 +02:00
Nico von Geyso
7bccfc8d26
Fixed: Memleak in diff_get_patch_byindex()
...
There was a memleak because of a missing Py_DECREF. Thanks to @delanne
2013-05-21 13:46:58 +02:00
Nico von Geyso
bdff1c3145
Removed: unnecessary PyObject in tree.c
2013-05-20 15:39:17 +02:00
Nico von Geyso
6dd14d799e
Fixed: Use GIT_DIFF_NORMAL as default flag for Diff
2013-05-20 15:38:49 +02:00
Nico von Geyso
86aafebb6d
Fixed: remove OrderedDict for compability reasons (python2.6)
2013-05-20 15:13:04 +02:00
Nico von Geyso
1af00ee1bd
Merge remote-tracking branch 'upstream/master' into features/diff_refactoring
2013-05-20 14:59:37 +02:00
Nico von Geyso
77b5cdce5b
Refactored: get rid of type check for treeish_to_tree in Diff
2013-05-20 14:58:54 +02:00
Nico von Geyso
6ce71a2799
Added: support for context_lines and interhunk_lines for diffs
2013-05-20 14:49:48 +02:00
Nico von Geyso
35d8bc4fc4
Added: Missing CONSTANTS for GIT_DIFF_*
2013-05-20 12:55:28 +02:00
Nico von Geyso
60c37bd7bf
Fixed: documentation for diff_*()-Methods
2013-05-18 16:19:44 +02:00
Nico von Geyso
99263af164
use git_tree_owner in Index_diff_to_tree()
2013-05-18 15:49:30 +02:00
Nico von Geyso
b4656cc99c
Merge remote-tracking branch 'upstream/master' into features/diff_refactoring
...
Conflicts:
src/tree.c
2013-05-18 15:48:27 +02:00
Nico von Geyso
bc4c32b65c
Added: documentation for Tree.diff_*-Methods
2013-05-18 15:42:04 +02:00
Nico von Geyso
0fc7a4fbad
Refactored Index.diff() into Index.diff_to_tree()/diff_to_workdir()
2013-05-18 15:29:28 +02:00
Nico von Geyso
196d0595b0
Added: Repository.diff() - porcelain method similiar to
2013-05-18 14:48:05 +02:00
Andrey Devyatkin
80574613f4
Fix document generation and move example to pydoc
...
- Fix issues introduced in prev commit
- Move all documentation for Repository.walk from log.rst to
pydoc in repository.c to make it available in both html and pydoc
- Extend documentation with sort types description
2013-05-18 01:05:59 +02:00
Andrey Devyatkin
785b5112ab
Add example for repo.walk pydoc
2013-05-17 22:20:44 +02:00
J. David Ibáñez
4f83209a9a
Install notes, checkout from libgit2 master
...
Some older versions of Git do not support to clone and checkout from a
tag.
2013-05-17 10:04:25 +02:00
J. David Ibáñez
14dd1bb659
Merge remote-tracking branch 'fraser/fix/typospotting'
2013-05-17 10:02:08 +02:00
Fraser Tweedale
e0f4bb27a9
README: fix typo
2013-05-17 17:44:32 +10:00
Daniel Rodríguez Troitiño
c5606d94f2
Add Repository pointer to Reference.
...
As asked in #221 .
2013-05-16 23:23:57 +02:00
J. David Ibáñez
672319fcc4
Merge remote-tracking branch 'heynemann/master'
2013-05-16 22:23:56 +02:00
Bernardo Heynemann
68e3e06a88
Missed a couple lines in the C code
2013-05-16 16:13:23 -03:00
Bernardo Heynemann
032faf7017
Fixing 80-column width for both the python and C code.
2013-05-16 16:09:39 -03:00
Bernardo Heynemann
a377b32b60
Documentation for the new clone method.
...
Even though I am aware that the comment lines in pygit2/__init__.py are longer than 79 characters, there's a reason for that.
If I break them, they'll show poorly in the documentation, and in my opinion better docs trump the 80 char requirement. If you think it's still better to have less than 80 characters in the comments, I'll gladly resubmit the changes at the expense of the documentation.
2013-05-16 10:25:47 -03:00
Bernardo Heynemann
57ea19e905
Now __init__ is pep8-compliant
2013-05-16 10:06:46 -03:00
Bernardo Heynemann
a831b8b6f6
Since I was PEP8-ing my tests, I decided to do it for the whole file.
2013-05-16 10:04:17 -03:00
Carlos Martín Nieto
4070c583f1
Explain what "latest libgit2" means better
...
pygit2 targets the master branch, and "latest" isn't well-defined in
this case, as libgit2's default branch is development.
2013-05-16 10:29:54 +02:00
Bernardo Heynemann
3dd998c061
Supporting clone in pygit2
2013-05-15 18:15:00 -03:00
J. David Ibáñez
8c69751d4f
Fix compilation warnings
2013-05-11 21:55:28 +02:00
J. David Ibáñez
405d5ccdfb
Rename and review py_str_to_git_oid*
2013-05-11 19:38:17 +02:00
J. David Ibáñez
d44f7aa9a9
docs: a little more
2013-05-11 15:22:28 +02:00
J. David Ibáñez
7b7bd5edb3
docs: a little more
2013-05-11 08:18:16 +02:00
Nico von Geyso
8c76a14a99
added reorder trees possibility for diff_to_tree()
2013-05-09 14:40:45 +02:00
J. David Ibáñez
101715bf37
docs: review, in progress
2013-05-09 14:21:04 +02:00
Nico von Geyso
ae6cd8a0ca
refactoring Tree.diff() into seperate methods
...
* Tree.diff_to_tree()
* Tree.diff_to_workdir()
* Tree.diff-to_index()
2013-05-07 14:06:20 +02:00
Nico von Geyso
2d812b671a
fixed line_origin in Hunks
...
every line in a hunk has a origin like '+','-' or ' '.
2013-05-07 13:23:17 +02:00
J. David Ibáñez
d6c1d49ef6
Use git_{object,tree}_owner ( #228 )
...
Note that libgit2's git_commit_owner is missing from the public
interface, so we cannot use it.
2013-05-06 23:16:50 +02:00