J. David Ibáñez
29ce23c0d5
Update copyright
2013-03-02 12:16:16 +01:00
W. Trevor King
36ae908de2
test: use Signature(encoding=...) in test_commit and test_signature.
...
Correct tests now that the default name encoding is ASCII.
2012-09-17 14:52:30 -04:00
J. David Ibáñez
edcd803e7e
Remove the __authors__ var from py files
2012-07-18 12:12:04 +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
J. David Ibáñez
c6ebc98930
Revert "Commit.parents now returns a list of oids"
...
This reverts commit 1fb34e7b96000d29c4633b66fabc0699ac74ce15.
2012-02-28 13:02:37 +01:00
J. David Ibáñez
1fb34e7b96
Commit.parents now returns a list of oids
...
Instead of returning the commit objects.
2012-02-27 00:25:57 +01:00
J. David Ibáñez
9064b8e038
Introduce the Signature object
2011-11-23 23:48:41 +01:00
J. David Ibáñez
ce41de9417
Repository.create_commit, make encoding optional
2011-11-19 09:37:45 +01:00
J. David Ibáñez
4f5298d6b7
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.
2011-11-12 20:13:28 +01:00
Hugh Cole-Baker
160cf64abc
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, instead use ValueError.
2011-10-22 22:01:16 +01:00
J. David Ibáñez
83642a6954
Rename '.sha' to '.hex'
2011-09-02 16:53:17 +02:00
J. David Ibáñez
05058d8167
Commit messages with non-ascii chars now work
...
And so do author & committers names
2011-08-24 08:52:41 +02:00
J. David Ibáñez
f09a02a2ee
Use UTF-8 encoding in all Python files
2011-08-24 07:42:05 +02:00
J. David Ibáñez
fd5aab4e56
tests: minor coding style fix, use 4 spaces indent
2011-08-24 07:32:21 +02:00
J. David Ibáñez
b84b79acd8
Fix running the tests with Python 3
...
Now "python3 setup.py test" works.
2011-08-24 00:07:20 +02:00
J. David Ibáñez
7950ee1116
Use Python 3 string literals for the unit tests
...
Now unit tests are broken.
2011-08-13 22:48:23 +02:00
J. David Ibáñez
b634a19bd4
Update to latest changes in libgit2
...
Commit.message_short removed, Commit.message_encoding added
2011-08-13 20:36:37 +02:00
J. David Ibáñez
713b14d2ee
Support updating reference in create_commit
2011-04-11 19:23:48 +02:00
J. David Ibáñez
6f2b864619
Change API to create Git objects
...
Do not allow to create commits, trees, blobs and tags directly from the
constructor. For instance, now calling "Commit(...)" raises an error.
Instead use the create methods of the repository object:
Before Now
----------------------------- -----------------------------
commit = Commit(repo, ...) sha = repo.create_commit(...)
tag = Tag(repo, ...) sha = repo.create_tag(...)
Most often you won't need to get the object just created, but if you
do just call "repo[sha]" afterwards. (Methods to create blobs and trees
are still missing, just like before.)
Similarly the method that creates a tree object from the index file does
not return the tree object anymore, but just its SHA:
Before Now
----------------------------- -----------------------------
tree = index.create_tree() sha = index.create_tree()
2011-04-11 18:44:49 +02:00
J. David Ibáñez
43ea66b738
Add support for the time offset of the signature
2011-04-08 17:03:41 +02:00
J. David Ibáñez
8bbc75148f
Add the parents param to the Commit init method
...
And fix unit tests for the commit object.
2011-04-05 11:22:56 +02:00
J. David Ibáñez
8da3f16da7
Merge remote branch 'john/add-commit-attributes' into revwalk
...
Conflicts:
pygit2.c
test/test_commit.py
2011-03-03 16:24:30 +01:00
John Szakmeister
2acf49c6f7
Support adding parents to a commit.
2011-02-27 07:01:33 -05:00
John Szakmeister
fd327d76e0
Uncomment a few tests.
2011-02-27 06:31:53 -05:00
John Szakmeister
3fc9a840a1
Add the parents attribute to commit.
...
Only support getting the attribute for now.
2011-02-26 16:31:15 -05:00
John Szakmeister
3b403247d1
Add a test for the sha of a commit.
2011-02-26 16:14:14 -05:00
J. David Ibáñez
7e8d2bb19d
Implement Commit.tree getter
...
We need this to be able to make an equivalent to "git log -- path"
2011-02-23 17:08:25 +01:00
J. David Ibañez
fe1540f546
Add index test case for a non-bare repo
2011-02-07 13:28:39 +01:00
Dave Borowitz
3fa91b901d
Return None for sha of in-memory objects.
...
Change-Id: Ieb1f332184bf747f4f8b12f12fec9e3570f74b10
2010-11-12 13:20:00 -08:00
Dave Borowitz
1236c64a94
Add tests for Commit.
...
Change-Id: Ic8f017728459e98c5c12376bd3f6d3fe08988e59
2010-11-12 13:20:00 -08:00