216 Commits

Author SHA1 Message Date
J. David Ibáñez
87724370d9 Merge remote-tracking branch 'jplana/change_refspec_api' 2013-12-02 16:26:30 +01:00
Jose Plana
05798fc5aa Fixed some error exceptions, docs 2013-12-02 13:40:38 +01:00
J. David Ibáñez
e6c270fe35 Get ready to release v0.20.0 2013-11-24 15:22:10 +01:00
J. David Ibáñez
c80fb4814f Update documentation 2013-11-24 13:34:27 +01:00
J. David Ibáñez
9c13be8dec Release 0.19.1
API changes:

- Rename Commit._message to Commit.raw_message
- Rename Signature._name to Signature.raw_name
- Rename Signature._email to Signature.raw_email

New features:

- Remote.push(refspec)
- Tag.get_object()

And some bugs fixed.

Thanks to Brodie Rao, Fraser Tweedale, Andrew Chin and Carlos Martín
Nieto.
2013-10-03 20:35:58 +02:00
J. David Ibáñez
bde9639314 Merge remote-tracking branch 'fraser/feature/push' 2013-09-02 10:29:10 +02:00
Andrew Chin
d5c0a23630 Doc fixes: change head.oid to head.target in examples 2013-09-01 12:58:55 -04:00
Fraser Tweedale
134d87ab2a implement push support
Implement push support via Remote.push which is called with a single
refspec and raises GitError (with an appropriate message where
possible) if the push fails.

Note that local push to non-bare repository is currently not
supported by libgit2.
2013-08-30 17:42:24 +10:00
Brodie Rao
3d6225d753 Merge branch 'brodie/signature-raw-name-email' into bitbucket 2013-08-19 13:41:25 -07:00
Brodie Rao
aec44c9ca2 signature: rename Signature._name/_email to Signature.raw_name/raw_email 2013-08-19 13:38:57 -07:00
Brodie Rao
b55650e093 commit: rename Commit._message to Commit.raw_message 2013-08-19 11:54:28 -07:00
Brodie Rao
298f941036 tag: add get_object() method
This maps to git_tag_peel().
2013-08-14 20:13:03 -07:00
J. David Ibáñez
5a007802d0 Release 0.19.0
API changes:

- New Oid type
- Changed signature of Repository.create_reference
- Reference.oid and Reference.hex removed, use Reference.target instead
- Drop "del Index[path]" from the API, use Index.remove(path) instead
- Drop TreeEntry.to_object
- Changed signature of Repository.checkout
- Repository.create_blob_from_file removed, use instead new methods
  Repository.create_blob_fromworkdir and
  Repository.create_blob_from_disk

New features:

- Add len(TreeBuilder) and TreeBuilder.get
- Add Repository.merge_base
- Support changing the head with "Repository.head = refname"
- Improved support for diff
- Add support for clone
- Python 2: Support hex oids as byte strings
- Add Reference.get_object()
- Add Remote.save
- Add support for branches, new type Branch

Other:

- Upgraded to libgit2 0.19
- Partial documentation review

Thanks to Nico von Geyso, Daniel Rodríguez Troitiño, Bernardo Heynemann,
Rémi Duraffort, Andrey Devyatkin, Hervé Cauwelier, Jiunn Haur Lim, Richo
Healey, Carlos Martín Nieto, David Fischer, Fraser Tweedale, Jun Omae
and Xu Tao.
2013-07-13 12:04:14 +02:00
Jiunn Haur Lim
38bd4c065d restructured recipes 2013-07-05 20:14:33 -04:00
Jiunn Haur Lim
5dfabbd825 added some quick examples to documentation 2013-07-05 10:44:39 -04:00
J. David Ibáñez
e56e8600ac Upgrading to libgit2 0.19 (wip)
Removed:

- Remote.fetchspec

Added:

- Remote.refspec_count
- Remote.get_refspec(n)
2013-06-30 13:35:51 +02:00
David Fischer
4b051e38ef
Added note about pygit2/libgit2 versioning 2013-06-14 08:04:56 -07:00
J. David Ibáñez
4b01309cd7 Merge remote-tracking branch 'drodriguez/remote-save' 2013-05-30 10:05:19 +02:00
Daniel Rodríguez Troitiño
5125b46664 Documentation for Remote.save. 2013-05-30 00:02:56 +02:00
Daniel Rodríguez Troitiño
877b4698ee Documentation for Branch type and Branch-related methods. 2013-05-30 00:00:35 +02:00
Nico von Geyso
6866a3aac5 Added: Reference.get_object() method
get_object() retrieves the object the current reference is pointing to
2013-05-28 11:23:26 +02:00
J. David Ibáñez
5e9c429083 Remove trailing whitespace 2013-05-24 23:08:08 +02:00
Nico von Geyso
1af00ee1bd Merge remote-tracking branch 'upstream/master' into features/diff_refactoring 2013-05-20 14:59:37 +02:00
Nico von Geyso
60c37bd7bf Fixed: documentation for diff_*()-Methods 2013-05-18 16:19:44 +02:00
Nico von Geyso
b4656cc99c Merge remote-tracking branch 'upstream/master' into features/diff_refactoring
Conflicts:
	src/tree.c
2013-05-18 15:48:27 +02:00
Nico von Geyso
bc4c32b65c Added: documentation for Tree.diff_*-Methods 2013-05-18 15:42:04 +02:00
Andrey Devyatkin
80574613f4 Fix document generation and move example to pydoc
- Fix issues introduced in prev commit
- Move all documentation for Repository.walk from log.rst to
  pydoc in repository.c to make it available in both html and pydoc
- Extend documentation with sort types description
2013-05-18 01:05:59 +02:00
J. David Ibáñez
672319fcc4 Merge remote-tracking branch 'heynemann/master' 2013-05-16 22:23:56 +02:00
Bernardo Heynemann
a377b32b60 Documentation for the new clone method.
Even though I am aware that the comment lines in pygit2/__init__.py are longer than 79 characters, there's a reason for that.
If I break them, they'll show poorly in the documentation, and in my opinion better docs trump the 80 char requirement. If you think it's still better to have less than 80 characters in the comments, I'll gladly resubmit the changes at the expense of the documentation.
2013-05-16 10:25:47 -03:00
Carlos Martín Nieto
4070c583f1 Explain what "latest libgit2" means better
pygit2 targets the master branch, and "latest" isn't well-defined in
this case, as libgit2's default branch is development.
2013-05-16 10:29:54 +02:00
J. David Ibáñez
d44f7aa9a9 docs: a little more 2013-05-11 15:22:28 +02:00
J. David Ibáñez
7b7bd5edb3 docs: a little more 2013-05-11 08:18:16 +02:00
J. David Ibáñez
101715bf37 docs: review, in progress 2013-05-09 14:21:04 +02:00
J. David Ibáñez
d900ee16fc Merge remote-tracking branch 'bors/create_blob' 2013-05-05 21:47:55 +02:00
J. David Ibáñez
974f16ca69 Re-work the checkout API
New API:

  Repository.head = refname
  Repository.checkout_head(strategy)
  Repository.checkout_index(strategy)
  Repository.checkout_tree(treeish, strategy)

Changed API:

  # Before
  Repository.checkout(strategy=GIT_CHECKOUT_SAFE_CREATE, reference=None,
                      head=False)

  # Now
  Repository.checkout(refname=None, strategy=GIT_CHECKOUT_SAFE_CREATE)
2013-05-05 21:45:39 +02:00
Hervé Cauwelier
63820aa608 update documentation on creating blobs 2013-05-05 10:35:41 +02:00
J. David Ibáñez
9c0a82876b Merge remote-tracking branch 'xtao/merge-base' 2013-05-05 00:40:21 +02:00
J. David Ibáñez
42aed417d4 Add TreeBuilder.get and remove TreeEntry.to_object
Also, check errors from git_tree_entry_dup
2013-05-04 00:31:03 +02:00
XTao
3474dca78f Add merge-base method. 2013-05-04 05:45:03 +08:00
J. David Ibáñez
31659fa673 docs: fix/improve references chapter a little bit 2013-04-28 11:16:31 +02:00
J. David Ibáñez
979cda9a9a refs: improve API (#213)
Changes:

- Reference.oid and Reference.hex removed
- Now Reference.target can be assigned an oid
2013-04-21 10:46:04 +02:00
J. David Ibáñez
8cc7a71a93 Merge branch 'oid' 2013-04-20 22:43:33 +02:00
J. David Ibáñez
e86fee5c7e Release 0.18.1
Changes:

- (#203) Now Repository.head returns the resolved reference, not the
  commit

- (#210) Fix refcount error in Repository.create_remote

- (#212) Improved diff documentation

Thanks to Jun Omae and Nico von Geyso.
2013-04-20 22:27:09 +02:00
J. David Ibáñez
37f0fed249 docs: add a section about the Oid type 2013-04-20 00:03:01 +02:00
Nico von Geyso
067b00de4f added basic diff example and fixed misleading doc 2013-04-19 15:10:05 +02:00
J. David Ibáñez
611e979113 Now Repository.head returns a reference (#203)
Now Repository.head behaves like libgit2's git_repository_head, it
returns the resolved reference. These two lines are equivalent:

  ref = repo.head
  ref = repo.lookup_reference('HEAD').resolve()

Before it returned a commit.
2013-04-17 08:16:43 +02:00
J. David Ibáñez
072cc38607 Release v0.18.0 2013-04-16 22:46:53 +02:00
J. David Ibáñez
32e460fe16 docs: complete and improve organization 2013-04-03 19:09:48 +02:00
Valentin Haenel
2ffb39397d syntax highlighting for shell commands in sphinx 2013-03-08 22:08:37 +01:00
J. David Ibáñez
a96d494747 Coding style
Including:

- Lines longer than 79 chars
- Spaces at the end of line
- Wrong indentation
- Comma not followed by an space
- C++ style comments: //
2013-03-02 11:40:42 +01:00