192 Commits

Author SHA1 Message Date
J. David Ibáñez
fa60e2233d Release 0.23.3 2016-01-01 19:18:34 +01:00
Noah Fontes
99dfce9ab8 Add support for Repository.describe(...). 2015-12-05 23:22:37 -08:00
J. David Ibáñez
f92d38e25f Merge remote-tracking branch 'frutiger/blob_from_iobase' into blob_from_io_base 2015-10-25 13:04:49 +01:00
J. David Ibáñez
70edbf256a Update copyright years 2015-10-11 18:48:59 +02:00
J. David Ibáñez
64150d3535 Release 0.23.2 2015-10-11 17:49:17 +02:00
J. David Ibáñez
9db8737364 Update changelog 2015-10-11 11:06:22 +02:00
Nicolás Sanguinetti
cf439e4286 List OpenSSL as a dependency in the docs 2015-10-06 14:44:18 -03:00
J. David Ibáñez
8a66da1278 docs: remove reference to old Remote.credentials 2015-09-27 13:57:30 +02:00
J. David Ibáñez
0d2bc05708 Merge remote-tracking branch 'carlos/diff-delta' 2015-09-27 13:55:13 +02:00
Carlos Martín Nieto
b8e6852d26 Add some missing fields to DiffFile's docs 2015-09-27 03:09:25 +02:00
Carlos Martín Nieto
ab97c08f72 Make clone take the callbacks object
This lets use the same callbacks for fetch and clone; it also fills in
the callbacks which the clone function did not support.
2015-09-27 02:43:50 +02:00
J. David Ibáñez
e4ef8ea5c2 Release 0.23.1 2015-09-26 20:49:13 +02:00
J. David Ibáñez
50f4b20e7d Update changelog 2015-09-26 13:30:24 +02:00
Nicolas Dandrimont
ac7738bbb3 Add type attribute to TreeEntry
This allows complete iteration and rebuilding of a tree without hitting
the object store for every entry.
2015-09-09 21:41:00 +02:00
J. David Ibáñez
29a8dbc6b2 Temporarily deactivate travis for PyPy and PyPy3
Until travis supports PyPy 2.6, and there is a new release of PyPy3

Update docs regarding cffi and PyPy
2015-09-03 09:24:58 +02:00
J. David Ibáñez
27e3450232 Get ready to release v0.23.0 2015-08-14 16:56:30 +02:00
Santiago Perez De Rosso
9dd74dd593 add doc for DiffLine 2015-07-16 11:35:46 -04:00
J. David Ibáñez
c5eae8942d Merge remote-tracking branch 'carlos/development' 2015-07-12 12:20:27 +02:00
J. David Ibáñez
2fdfdcdc4b Get ready to release v0.22.1 2015-07-12 12:04:58 +02:00
Carlos Martín Nieto
f09bbe79a8 Update installation docs with v0.23 2015-07-06 18:49:20 +02:00
J. David Ibáñez
6939b9b203 Fix indent error 2015-06-16 20:06:29 +02:00
J. David Ibáñez
e46119838b Merge remote-tracking branch 'rmoehn/cherry-pick-cleanup' 2015-05-03 11:37:57 +02:00
J. David Ibáñez
d63c2d4fd7 Merge remote-tracking branch 'carlos/diff-stats' 2015-04-29 10:47:21 +02:00
Carlos Martín Nieto
5b50579790 Add a recipe for git clone --mirror
It's not necessarily obvious how to perform a mirror, so add a recipe
which tells what git does as well as provide example code of how to
perform the same steps in pygit2.
2015-04-28 19:53:39 +02:00
Carlos Martín Nieto
42d81e33ec Add DiffStats
This wraps git_diff_stats and can be retrieved through a Diff. It
includes a formatting method.
2015-04-28 16:21:56 +02:00
Richard Möhn
654e4bf56f Cherry-pick recipe: clean up after picking
In b3025e3fe I had written that when following my recipe, the repository
remains in cherry-picking mode afterwards. In issue #516 I was told that
Repository.state_cleanup() is needed to correct that. Therefore add it
to the recipe.

Also add a note near the documentation for cherry-pick, so that nobody
will overlook this again. Apparently there are other times when you need
to do Repository.state_cleanup() as well, but it's not documented, I
don't know when and I don't want to take the time and find out. So leave
it at that for now.
2015-04-25 14:49:48 +09:00
J. David Ibáñez
c072a77e4b Merge remote-tracking branch 'rmoehn/diff-iter' 2015-04-23 12:45:44 +02:00
Richard Möhn
1b9cb54927 Add hint to Diff.__iter__()
I'm not the guy who looks at examples in the first place and I guess
there are other people like me. When I wanted find out how to get
information out of a Diff, I looked at the documented methods and didn't
find anything. Only later @cmn showed me the [p for p in diff] example
in the documentation. Add a short piece of information that gives a hint
to those who prefer the dry API docs.
2015-04-23 16:38:55 +09:00
Richard Möhn
b3025e3fe1 Add git-cherry-pick recipes
Add the way that worked for me. Not sure if it is idiomatic. When doing
the convenience-mode cherry-pick, the repo remains in cherry-picking
mode afterwards. I've already added an issue for this.
2015-04-22 17:14:45 +09:00
Patrick Steinhardt
f923e20f2d submodule: reimplement with Python CFFI.
The submodule type has been implemented as a C type. When opening
a submodule's repository this leads to the bug that instead of an
actual pygit2.Repository being instantiated we only create an
object of the C Repository type.

As this is not trivially fixed within the C code, reimplement the
submodule type as a Python interface with CFFI. As submodules
provide no functionality that is usually accessed repeatedly the
code paths should not prove performance critical. In addition,
maintainability is improved by this reimplementation.
2015-04-16 11:36:41 +02:00
Vladimir Rutsky
ca39a65054 fix typo: "Troobleshooting" 2015-03-30 14:19:58 +03:00
J. David Ibáñez
50a70086bf Merge remote-tracking branch 'pks/submodules' 2015-03-09 19:06:44 +01:00
Kaarel Kitsemets
2d3f9d8e55 Added info about pkg-config being an optional requirement 2015-03-07 12:44:32 +02:00
Patrick Steinhardt
404645042b Add Submodule type. 2015-03-04 14:10:41 +01:00
kitsemets
ef67c36d8c docs/install.rst: added pkg-config as a dependency for building libgit2. Without pkg-config it is not possible to build libgit2 with ssh support. 2015-02-26 16:00:27 +02:00
J. David Ibáñez
fbb11775a3 Update changelog 2015-02-14 21:27:34 +01:00
J. David Ibáñez
82d5214321 Merge remote-tracking branch 'rmoehn/master' 2015-02-13 16:30:54 +01:00
Richard Möhn
1cb62ab578 git-show recipe: Add the easy Python 3 way
As @jdavid pointed out, Python 3 already provides a tzinfo subclass for
fixed UTC offsets. Incorporate this in the recipe. Leave the old code
with the self-made class, since many people are working with Python 2
and it is harder to find out there.
2015-02-13 13:46:41 +01:00
Richard Möhn
69f539851b Clarify comments in git-show recipe 2015-02-13 09:03:16 +01:00
J. David Ibáñez
94be744ba6 docs: remove reference to LIBGIT2 in OS X notes
As disscussed in PR #448
2015-02-12 09:32:58 +01:00
J. David Ibáñez
40946cd795 Merge remote-tracking branch 'holgi/master' 2015-02-12 09:32:18 +01:00
Richard Möhn
2b2beb8094 Correct git-show recipe
Make the diff generation more idiomatic and fix the assembling of the
timestamp. git-show normally prints the author time, so use this instead
of the commit time. Also fix how tzinfo is obtained. Of course we have
to use the author's time zone and not some fixed one as I had written
before.
2015-02-12 09:08:24 +01:00
Richard Möhn
c87d28c9a8 Update git-show recipe
I couldn't get the diff as shown in the git-show recipe. Therefore
update it to what I think it should be. Maybe there is a better way.

Also add a section on how to assemble a git show-like message. It took
me quite some searching in the Python docs to find out how to do it,
especially the date and time part. So this might save people time. I
wanted to add something that gives me a git show --stat equivalent, but
couldn't figure it out.
2015-02-11 18:00:00 +01:00
Masud Rahman
9cce003efe Implements 'Repository.create_blob_fromiobase'.
This commit allows blobs to be constructed from implementatons of the
'RawIOBase' ABC.  This allows any conformant stream implementation to be added
as a blob.

This is useful in the case where the contents of the blob would be too large to
create from memory (as 'create_blob_fromstring' allows) and avoids having to
write the data to disk (as 'create_blob_fromworkdir' allows).  The latter
operation is especially useful when reading data from a network socket, since
it avoids having to first commit all the data to disk.
2015-02-10 01:28:23 -05:00
Carlos Martín Nieto
d4da228c0e Add documentation for merge_commits() and merge_trees() 2015-02-09 21:25:33 +01:00
J. David Ibáñez
718a2df1d5 Fix building the docs 2015-02-07 08:37:41 +01:00
Carlos Martín Nieto
4709cae1a1 Add Repository.ahead_behind()
This lets us ask how many diverging commits each side of two histories
have.
2015-02-06 01:26:26 +01:00
J. David Ibáñez
e7fdaf2510 Fix link to travis image (use master) 2015-01-23 23:19:13 +01:00
J. David Ibáñez
061961f119 Rename pygit2.Hunk to pygit2.DiffHunk
Comes from PR #346
2015-01-23 13:38:13 +01:00
J. David Ibáñez
126308403b Get ready to release v0.22.0 2015-01-16 16:35:19 +01:00