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
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
J. David Ibáñez
974f16ca69
Re-work the checkout API
...
New API:
Repository.head = refname
Repository.checkout_head(strategy)
Repository.checkout_index(strategy)
Repository.checkout_tree(treeish, strategy)
Changed API:
# Before
Repository.checkout(strategy=GIT_CHECKOUT_SAFE_CREATE, reference=None,
head=False)
# Now
Repository.checkout(refname=None, strategy=GIT_CHECKOUT_SAFE_CREATE)
2013-05-05 21:45:39 +02:00
J. David Ibáñez
3a0bafa12b
Rename "low level" reference creation methods
...
Rename Repository methods:
- git_reference_create => create_reference_direct
- git_reference_symbolic_create => create_reference_symbolic
2013-05-04 09:30:37 +02:00
J. David Ibáñez
67417c7f56
create_reference, drop the symbolic param ( #213 )
...
Now we figure out whether it is a direct or symbolic reference based on
the type and value of the target. This guessing will fail in very very
rare situations, for that we still have the explicit lower level API.
2013-04-27 11:39:37 +02:00
J. David Ibáñez
ad4b4cc4c5
Implement the Repository mapping interface in Python
...
Add 'Repository.get' and low level 'Repository.git_object_lookup_prefix'
2013-03-09 23:14:17 +01:00
J. David Ibáñez
d8b2514029
Rename low level reference creation methods
...
The idea is to keep exactly the same name as in libgit2
2013-03-03 23:01:42 +01:00
J. David Ibáñez
9ffc14148e
Now we have a Repository class written in Python
2013-03-03 14:44:42 +01:00