J. David Ibáñez
a80e989377
Merge remote-tracking branch 'esc/docs/fix_syntax_highlight'
2013-03-02 10:23:43 +01:00
J. David Ibáñez
6fcd19eb0b
Merge remote-tracking branch 'esc/feature/init_repository_keywordargs'
2013-03-01 22:14:48 +01:00
J. David Ibáñez
bdb655787f
Fix build after latest changes in libgit2
2013-03-01 22:11:16 +01:00
Valentin Haenel
d937da9c8a
refactor the blob example
2013-02-28 21:10:23 +01:00
Valentin Haenel
ce5b884bbe
fix syntax hightlighting in docs
...
When using comments in a pycon session, comments must be prefixed with standard
console prompt (>>>) for pygments syntax highlighting to work.
2013-02-28 21:05:24 +01:00
Valentin Haenel
db02a2dbb6
document new ways to init a repo
2013-02-28 20:13:28 +01:00
Valentin Haenel
a41f59deb3
tests for keyword arg init_repository
2013-02-28 20:05:19 +01:00
Valentin Haenel
25947338b8
allow for keyword args in init_repository
...
This implements five ways to init a repo:
import pygit2 as git
git.init_repository("/tmp/foo/")
git.init_repository("/tmp/foo/", True)
git.init_repository("/tmp/foo/", False)
git.init_repository("/tmp/foo/", bare=True)
git.init_repository("/tmp/foo/", bare=False)
Since one is still able to pass the bare as a positional argument, this change
is perfectly backwards compatible. All existing code will continue to work.
2013-02-28 20:05:19 +01:00
J. David Ibáñez
276a6dbe2a
Merge remote-tracking branch 'cholin/features/checkout'
...
Conflicts:
src/pygit2.c
2013-02-19 22:38:13 +01:00
J. David Ibáñez
933e02ee5c
Cosmetic fix to setup.py
2013-02-19 10:53:41 +01:00
J. David Ibáñez
7e7cc6f416
Merge remote-tracking branch 'cboos/bdist_wininst'
2013-02-19 10:39:42 +01:00
Christian Boos
bcf48321ee
setup: using u'...' breaks for Python 3.[0-2].
2013-02-18 21:03:19 +01:00
Christian Boos
c4fa231df3
setup: Emacs actually don't like UTF-8, prefers utf-8
2013-02-18 20:58:43 +01:00
Christian Boos
67f68d2234
Fix setup.py so that bdist_wininst works.
...
Leaving the maintainer's name as a string (as opposed to a unicode)
was triggering a UnicodeDecodeError when running bdist_wininst with
Python 2.7.3
2013-02-18 20:51:06 +01:00
Christian Boos
4e14c1e543
update version to 0.17.4dev (once 0.17.3 is released, it's no longer 0.17.3)
2013-02-18 20:46:02 +01:00
J. David Ibáñez
ed66578029
Remove __libgit2_version__ because it is a dup
...
We already have LIBGIT2_VERSION
2013-02-17 22:46:11 +01:00
J. David Ibáñez
c7fe7e2844
Merge remote-tracking branch 'cboos/libgit2_version'
2013-02-17 22:40:49 +01:00
Nico von Geyso
1b5bf479ff
added functionality to checkout from index
2013-02-17 17:30:34 +01:00
Nico von Geyso
b828eb926f
added functionality to checkout from HEAD
2013-02-17 17:30:34 +01:00
Nico von Geyso
db5e1443b6
added tests for Repo.checkout()
2013-02-17 17:30:34 +01:00
Nico von Geyso
fbab2953de
new Repository.checkout method
2013-02-17 17:30:34 +01:00
Nico von Geyso
270fa59e5b
added bye.txt and new to testrepo i18n branch
2013-02-17 17:30:34 +01:00
Nico von Geyso
35230d06b8
initialize py_stats to NULL
2013-02-17 17:30:34 +01:00
Nico von Geyso
673053dc71
added GIT_CHECKOUT_* constants
2013-02-17 17:30:34 +01:00
J. David Ibáñez
826409b3db
tests: add remote to the test suite
2013-02-17 17:30:34 +01:00
J. David Ibáñez
d8026493cf
tests: add remote to the test suite
2013-02-17 17:29:38 +01:00
Christian Boos
64ae9e19f4
Use libgit2 LIBGIT2_VER* constants directly instead of git_libgit2_version() call.
2013-02-17 12:52:36 +01:00
Christian Boos
8f843beecf
Add pygit2.__libgit2_version__ to retrieve git_libgit2_version() info.
2013-02-17 12:21:15 +01:00
Christian Boos
bd62fded03
Add _pygit2 constants for libgit2 version information.
2013-02-17 11:33:20 +01:00
Nico von Geyso
0823621bb4
renamed remote_create() to create_remote()
2013-02-16 21:58:42 +01:00
Nico von Geyso
9c9e0f9755
added tests for remote.fetch()
2013-02-16 21:56:34 +01:00
Nico von Geyso
3bf32f707a
added remote 'origin' to emptyrepo.tar
2013-02-16 21:56:00 +01:00
Nico von Geyso
d798d95a8b
added basic fetch()-method for remotes
2013-02-16 21:26:51 +01:00
Nico von Geyso
4864e7b24c
removed duplicated GETSET entry in remote.c
2013-02-16 20:47:50 +01:00
Nico von Geyso
4873529129
added setter for remote fetchspec
2013-02-16 20:47:45 +01:00
Nico von Geyso
ee32acdf39
added remote fetchspec getter
2013-02-16 19:51:18 +01:00
Nico von Geyso
d150937068
added functionality to set remote urls
2013-02-16 19:47:31 +01:00
Nico von Geyso
ffaf0d5ada
added functionality to rename remotes
2013-02-16 19:47:31 +01:00
Nico von Geyso
bc2bb9fc26
added assertRaisesAssign test function
2013-02-16 19:47:31 +01:00
Nico von Geyso
c1e645ea1a
moved remote tests to test_remote.py
2013-02-16 19:47:31 +01:00
Nico von Geyso
401e5c9aaf
added remote 'origin' to testrepo.tar
2013-02-16 19:47:31 +01:00
Nico von Geyso
5a6a481fbb
remote_create: instantiate object manually for efficiency
2013-02-16 19:47:31 +01:00
Nico von Geyso
5847007075
free remote pointer in deallocation
2013-02-16 19:41:19 +01:00
Nico von Geyso
14a6734921
Added basic remote support
...
* new Repository methods implemented:
* remotes to list all existing remotes
* remote_create to create a new remote entry
* New Class Remote added
2013-02-15 18:08:38 +01:00
richo
4551cb078a
Add tests for hash
2013-02-15 03:28:53 +11:00
richo
ec5cfa413e
Implement Repository.hash
...
This takes a string of arbitrary data (That may include null bytes) and
returns it's sha1 hash as though it were a blob, without actually
writing to the object db.
2013-02-15 03:28:52 +11:00
richo
927b29d70e
Add tests for Repository.hashfile
2013-02-15 03:28:52 +11:00
richo
149db7c055
Implement Respository.hashfile
...
This hashes the content of a file, without actually writing it to the
db.
2013-02-15 03:28:52 +11:00
J. David Ibáñez
8e40dbd314
Make doc strings look fine from the interpreter
...
Basically add a new-line character since "help(...)" does not wrap
lines automatically.
2013-02-09 23:46:37 +01:00
J. David Ibáñez
7d3ba87cea
Finish deploying PyDoc_STRVAR
2013-02-04 19:20:24 +01:00