Commits

Show all
Author Commit Message Labels Comments Date
Brodie Rao
Add Object.size to quickly get the size from the object header
Branches
unicode-eradication
Brodie Rao
Eradicate almost all Unicode usage. This reverts pygit2 back to using str/bytes everywhere except for commit/tree/tag.hex.
Branches
unicode-eradication
David Ibáñez
Fix memory leak in 'Repository.create_tag' Free the signature.
David Ibáñez
Fix memory leak in 'Repository.create_commit' Free the signatures.
David Ibáñez
Use file system encoding to decode/encode paths Instead of UTF-8. This is done for better interoperability with Git.
David Ibáñez
Repository.create_commit supports message encoding Now the 'Repository.create_commit' method expects one more argument, the message encoding. If 'None', it defaults to UTF-8.
David Ibáñez
Fix typo in error string
David Ibáñez
Python 3: fix 'Error_set_py_obj'
sigmaris
Add support for using short hex string prefixes Allows Repository_getitem, Repository_read(_raw), Repository_create_commit, Repository_create_tag and Object_read_raw to use short hex strings to lookup objects. Also test getting objects from Repository using prefixes, looking up commit trees and parents by hex prefix, and looking up tag targets by prefix. Also stop raising TypeError if passing a too-short hex prefix to the lookup functions, inst…
David Ibáñez
tags: properly dealloc tags There were two memory leaks: we were not closing the git_tag object, and we were not decreasing the refcount on the repo. This finishes fixing issue #20
David Ibáñez
tests: fixing issue #20 There were two problems: - Windows refuses to remove a file that is in use. Solution, close the repo before cleaning the temporary directory. - Windows refuses to remove a read-only file. Solution, change mode to writable.
David Ibáñez
Fix compilation on Windows
David Ibáñez
Fix warning on Windows, don't use strnlen strnlen is a GNU extension
David Ibáñez
Fix warnings
David Ibáñez
py_str_to_git_oid now supports short prefixes py_str_to_git_oid now returns the length of the oid on success. We don't yet do anything useful with the length, but every call to py_str_to_git_oid has been properly updated. This is half the work needed to fix issue #50. The changes made to py_str_to_git_oid are based on a patch by Hugh Cole-Baker.
David Ibáñez
Update setup file
David Ibáñez
docs: talk about the repository first
David Ibáñez
py_str_to_git_oid: don't decrease refcount too early Error handling still broken in py_str_to_git_oid, can be verified by typing repo['toto']
David Ibáñez
git_object_id cannot return NULL
David Ibáñez
Working on the docs, talk more about objects
David Ibáñez
Update readme file
David Ibáñez
Rename '.sha' to '.hex'
David Ibáñez
Add TreeEntry.oid, IndexEntry.oid, Reference.oid
David Ibáñez
Add Object.oid to get the raw object id
David Ibáñez
Methods to create objects return raw oid Now methods that create new objects return the raw oid instead of the hexadecimal form.
Josh Bleecher Snyder
Use realpath instead of abspath to properly handle symlinked temp dirs Fixes issue #47
David Ibáñez
Commit messages with non-ascii chars now work And so do author & committers names
David Ibáñez
Use UTF-8 encoding in all Python files
David Ibáñez
tests: minor coding style fix, use 4 spaces indent
David Ibáñez
Remove broken test with Python 3 Now all tests pass with Python 3.
  1. Prev
  2. Next