J. David Ibañez
fe1540f546
Add index test case for a non-bare repo
2011-02-07 13:28:39 +01:00
J. David Ibañez
8c08923309
Start support for the index file
2011-02-07 12:39:57 +01:00
J. David Ibañez
f615190371
Complete .gitignore
...
Ignore files produced when running the tests, and vim swap files.
2011-02-07 12:37:47 +01:00
J. David Ibañez
7d91d44567
Make pygit2 build against new libgit2 API
...
Now Tree.add_entry returns the created entry.
2011-02-02 17:49:37 +01:00
Rui Abreu Ferreira
9e919c3966
Make pygit2 build against new libgit2 API
...
- Replace git_person with git_signature
- Replace include directives with git2
2011-01-07 15:24:03 +00:00
Vicent Marti
58a439467f
Update README.md
...
Clone URL was wrong; installation instructions were outdated.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-30 21:28:16 +02:00
Vicent Marti
a8b163aa67
Update README file
...
Add installation instructions, dependencies, authors, etc
Signed-off-by: Vicent Marti <tanoku@gmail.com>
2010-11-13 19:31:56 +02:00
Dave Borowitz
db1e4ace37
Fix some Tree error messages.
...
Change-Id: Ic72c307436d2e1abb610ac8a3dab26f1c4995255
2010-11-12 13:28:48 -08:00
Dave Borowitz
673a045a30
Add KeyError assert to test_repository.
...
Change-Id: Ifd29be456c61fdd476a3298b1ead110283d2424e
2010-11-12 13:28:48 -08:00
Dave Borowitz
520556e552
Add assertRaisesWithArg for better KeyError/IndexError testing.
...
Change-Id: Iadc9075e8e705579e4c0daf49fe7110db55e87c0
2010-11-12 13:28:48 -08:00
Dave Borowitz
8ad31c1db4
Update various calls to new error-code-returning interface.
...
Change-Id: I56d60a99e5eb251825b1225b06dadb7848d5b2dd
2010-11-12 13:28:48 -08:00
Dave Borowitz
b59536cd06
Reorganize error helper functions.
...
-Factor out a function for mapping libgit2 error numbers to Python
exception types.
-Rename Error_set_py_str -> Error_set_py_obj.
-Simplify formatting of Error_set_py_obj to just prefix the git_strerror
with the offending object.
-Add Error_set_str, like py_str but with C strings.
Change-Id: I51fe47c96a0c57aaeafd2c98418c0c548b93147d
2010-11-12 13:28:48 -08:00
Dave Borowitz
a2370dfa3e
Factor out functions to build and parse person tuples.
...
This also gives us more flexibility if we decide to change the person
object representation to something other than a tuple.
Also fix a format string to correctly cast to long long.
Change-Id: I0ed496c6807328084a26a956c77871c3cb76eedf
2010-11-12 13:22:10 -08:00
Dave Borowitz
38ba0054c0
Correctly return Py_None.
...
Change-Id: Id41325a71a9433dbee3746fb4c7bd3d834a7d64c
2010-11-12 13:22:10 -08:00
Dave Borowitz
e077abe1a6
Add Tag class.
...
Change-Id: Ia7240e96dd6da69d373f385bde67e8d3aa70f7b1
2010-11-12 13:22:10 -08:00
Dave Borowitz
5ef719ced6
Add helper function to convert strings to git_oids.
...
Change-Id: Ie1c31ae87ff9611ee892f02423277ce59996c76b
2010-11-12 13:22:10 -08:00
Dave Borowitz
b99b12d3c5
Fix a few exception returns.
...
Change-Id: Ibb36fd6c14450dfb436ee545b1a91e44b8b2f8cb
2010-11-12 13:22:10 -08:00
Dave Borowitz
9f5d4888a8
Add GitError base class and error-setting functions.
...
Change-Id: I00d05970f15d082fa3c41998089e4e27524a4346
2010-11-12 13:22:10 -08:00
Dave Borowitz
bd9fe382d3
Factor out more object initialization.
...
Change-Id: I2f6d029ce22995ce4518b43593e6e45e481631f0
2010-11-12 13:22:10 -08:00
Dave Borowitz
33d775a1d7
Add Blob class.
...
Change-Id: I8c448be4947c2090c4378d62cc3d935483fcf055
2010-11-12 13:22:10 -08:00
Dave Borowitz
35f094b57b
Add Tree and TreeEntry classes, with tests.
...
Change-Id: Idadd5fc59b85506260a1f57b5e7488aed590bfa1
2010-11-12 13:22:08 -08:00
Dave Borowitz
fe39b53757
Factor out a helper function for initializing Objects.
...
Change-Id: Ibf1585bbd4fd5adfb835e34d02fc6186a97d1cd9
2010-11-12 13:20:00 -08: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
Dave Borowitz
a2b0f45368
Add simple repository tests.
...
Change-Id: I128ac826f1c673002bc6f17696691e5a4bd7f0fd
2010-11-12 13:19:57 -08:00
Dave Borowitz
a2c5389465
Export GIT_OBJ_* constants.
...
Change-Id: I3933d2a0c700f0ada626655eb5deb3e841887c04
2010-11-04 13:59:59 -07:00
Dave Borowitz
994e64d134
Allow in-memory object creation and writing.
...
Currently doesn't work because we don't have enough setters to set all
the required Commit attributes.
Change-Id: I65c6d22f6639bc9e9ef3c430863f099f25ea9994
2010-11-04 13:59:59 -07:00
Dave Borowitz
9422205f2c
Add Commit subclass of Object.
...
Only supports a few read-only properties so far.
Change-Id: I6e5bea0ab22c8821a625327c3d81cce20d012037
2010-11-04 13:59:59 -07:00
Dave Borowitz
fa911af789
Add Repository.read method.
...
Change-Id: I0891d624d8dff6cd211bafeb7b4f96416aa0b28b
2010-11-04 13:59:55 -07:00
Dave Borowitz
4940678d9f
Initial checkin of pygit2, the Python libgit2 bindings.
...
So far, only contains Repository and Object type definitions with a few
methods.
Change-Id: I0c53035fe3a418f5b96e36d1549dcf0ffed172f4
2010-11-04 13:59:18 -07:00