17 Commits

Author SHA1 Message Date
Brodie Rao
78d134c016 repository: add listall_reference_objects() method
This allows for efficient reading of many references and their targets,
without incurring the overhead of lookup_reference() (which stats for
a loose ref and then reads packed-refs) which can be expensive on NFS
with thousands of refs.
2014-01-08 15:14:27 -08:00
Carlos Martín Nieto
b98e9e85de Reference: implement peel()
This makes both objects and references peelable via the same interface,
simplifying how to get to the wanted type.
2014-10-07 20:27:01 +02:00
Carlos Martín Nieto
70410349ff Update reference documentation 2014-08-28 01:25:21 +02:00
Carlos Martín Nieto
31fc235b59 Fix sphinx complaints about the docs
Use the right namespace so Refspec and TransferProgress show up. These
classes are not instantiated by the user, so they were not promoted to
the pygit2 module. Use autoclass so it lists everything for us.

Also use autoclass for the reflog. We had a difference is oid vs id
between the docs and the code.
2014-07-10 08:25:54 +02:00
J. David Ibáñez
88a28f7ed8 Merge remote-tracking branch 'carlos/development' 2014-06-21 10:14:00 +02:00
Michael Jones
1f111c08b6 Provide example for Reference.log_append
I would have found this useful when trying to do reflog additions. It
might not be massively complex but examples always help.
2014-06-15 11:39:24 +01:00
Michael Jones
7296b921cc Fix spelling typo 2014-06-15 11:30:33 +01:00
Carlos Martín Nieto
e5f6798f67 Adjust to oid -> id renaming 2014-04-01 19:47:48 +02:00
J. David Ibáñez
c80fb4814f Update documentation 2013-11-24 13:34:27 +01: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
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
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
32e460fe16 docs: complete and improve organization 2013-04-03 19:09:48 +02:00
J. David Ibáñez
181c6ed91e docs: merge auto generated and hand writen docs 2013-01-19 17:05:36 +01:00
J. David Ibáñez
e34911b63e docs: split usage guide into several source files 2013-01-13 22:26:49 +01:00