J. David Ibáñez
6a5e4879d9
Define the METHOD macro and deploy it
2013-02-03 12:07:25 +01:00
J. David Ibáñez
bf81dfe193
Define GETTER helper macro
...
To save typing, and increase coding consistency.
2013-02-03 11:21:03 +01:00
Nico von Geyso
ea8b076b70
fixed api changes for index.c
...
11d9f6b304 in libgit2 changed api for git_index_find()
2013-02-01 13:37:53 +01:00
Nico von Geyso
a511f299bb
fixex api changes of libgit2 in 64c5112
2012-11-28 18:10:07 +01:00
Nico von Geyso
64bb6efc2b
added Error_set_exc() for throwing individual Exceptions
2012-11-19 23:12:12 +01:00
J. David Ibáñez
2ac913244d
Merge remote-tracking branch 'delanne/memleak'
2012-11-14 17:54:00 +01:00
delanne
9ffbe7b2ce
Fix memleak + refcount issues
2012-11-09 14:45:07 +01:00
Nico von Geyso
2da04cab2d
Merge branch 'master' into create_reference_refactoring
2012-11-04 21:45:41 +01:00
W. Trevor King
4660c9c149
config: extend Config.add_file() accept keyword arguments.
...
This provides backward compatibility with older code that does not
specify `force`.
Signed-off-by: W. Trevor King <wking@tremily.us>
2012-10-25 13:52:15 -04:00
Nico von Geyso
682fb1fd13
merged create_reference and create_reference_symbolic and added force-Option
...
To be more pythonic: merged methods create_reference and create_reference_symbolic
and added force-Option. To make a new symbolic reference you have provide symbolic=True
as an additional parameter. If force=True references will although be overridden.
Otherwise an exception is raised if the references exists.
Examples:
# normal reference
repo.create_reference('refs/heads/foo', repo.head.hex)
# override reference with new value
repo.create_reference('refs/heads/foo', repo.head.hex, force=True)
# symbolic reference
repo.create_reference('refs/tags/foo', 'refs/heads/master', symbolic = True)
2012-10-09 13:13:36 +02:00
J. David Ibáñez
5251343ee7
Merge remote-tracking branch 'wking/revparse'
2012-09-25 15:10:55 +02:00
Ridge Kennedy
bc0c0e17a8
Add Blob.size
2012-09-16 22:56:36 +12:00
W. Trevor King
cc7f137f7b
object: factor wrap_object
out of lookup_object_prefix
.
...
Generating an `Object *` from a `git_object *` may be useful in other
functions (e.g. the upcoming `Repository_revparse_single`).
2012-09-13 16:41:56 -04:00
W. Trevor King
651aa6a830
tree: rename Tree.attributes to Tree.filemode.
...
This catches up with changes in libgit2:
commit 9d7ac675d06dab2e000ad32f9248631af0191f85
Author: nulltoken <emeric.fermas@gmail.com>
Date: Tue Aug 21 11:45:16 2012 +0200
tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()
2012-09-13 16:14:24 -04:00
Alex Chamberlain
7e3b21ba55
Added Repository.create_blob_fromfile
2012-08-23 12:47:12 +01:00
Carlos Martín Nieto
6e06863722
diff: expose the filemode through Hunk
2012-08-15 21:05:12 +02:00
Carlos Martín Nieto
f3dab28082
diff: add old and new OID values to Hunk
...
These can be important, and are necessary to create a patch from this
data.
2012-08-15 20:37:43 +02:00
Carlos Martín Nieto
11d0c9a30f
diff: expose the hunk header
...
We can rebuild it from the data we already have, but this will allow
us to get the function headers in it once the library supports it.
2012-08-15 20:07:49 +02:00
J. David Ibáñez
6195491596
Add/update copyright header of each file
...
And update my email address.
2012-07-18 12:07:17 +02:00
Martin Lenders
3df090c761
Implement getting and setting of multivars
2012-06-08 18:34:54 +02:00
Martin Lenders
1acd488c68
Wrap git_config_foreach in Config
2012-06-08 18:34:54 +02:00
Martin Lenders
e126b09380
Implement dictionary-like behaviour for Config
2012-06-08 18:34:54 +02:00
Martin Lenders
e77d248713
Add back reference from Repository to Config
2012-06-08 18:34:54 +02:00
Martin Lenders
fcacea310b
Implement addition of files to Config
2012-06-08 18:34:54 +02:00
Martin Lenders
068b833c87
Add getter for global and system config
2012-06-08 18:34:54 +02:00
Martin Lenders
c4d17b759b
Create Config type
2012-06-08 18:34:54 +02:00
J. David Ibáñez
1e1750f8da
Merge remote branch 'perth/master'
2012-05-31 13:32:25 +02:00
J. David Ibáñez
a55d4da18a
Merge remote branch 'cholin/head_getter'
2012-05-31 09:52:54 +02:00
Petr Hosek
d054788d19
Synchronized with upstream
2012-05-30 20:43:26 +01:00
Nico von Geyso
a8a0ac8290
use generator instead of python list
2012-05-30 15:57:35 +02:00
Nico von Geyso
e8c8fa29b7
Merge branch 'master' of https://github.com/libgit2/pygit2 into head_getter
2012-05-30 14:44:12 +02:00
Nico von Geyso
89354bc606
Merge branch 'master' of https://github.com/libgit2/pygit2 into reflog
2012-05-30 14:39:34 +02:00
Nico von Geyso
ce4e411135
added revlog
2012-05-30 14:39:02 +02:00
Nico von Geyso
ade2e5812c
support for diff against workdir or index
...
Added missing support for a diff against workdir or an index.
The latter one differs from `git diff HEAD` because git itself
does a merge of workdir and index (see docs of git_diff_workdir_to_tree).
2012-05-30 07:58:31 +02:00
Petr Hosek
6aba5b65a2
Diff now invoked immediately and its result stored inside object to
...
avoid calls on repeated accesses and allow implementation of other
variants
Fixed indentation in diff implementation
2012-05-28 15:45:46 +01:00
Nico von Geyso
e402d0e9eb
added head-getter for Repository
...
You do not have to lookup and resolve the HEAD reference anymore if you simply want
the last commit. Repository has now a head-getter which combines all these steps.
example:
repo = Repository('.')
head = repo.head
print(head.message)
2012-05-28 12:41:43 +02:00
Nico von Geyso
e7b5560590
Merge branch 'master' of https://github.com/libgit2/pygit2 into refactoring
...
Conflicts:
pygit2.c
2012-05-25 17:37:25 +02:00
Nico von Geyso
6b1a281edc
refactoring pygit2.c into several small files
...
The whole extension was organised in one big 3727 lines monster.
This refactoring is splitting these 3727 lines into several smaller files.
2012-05-25 14:07:44 +02:00