Switch branches/tags
Nothing to show
Commits on Nov 27, 2011
  1. corrected qgit2.h includes

    antis81 committed Nov 27, 2011
  2. wrapped GIT_SORT_… flags to Qt style flags; avoid forcing direct usag…

    …e of libgit2 headers; renamed method sorting to setSorting as it is actually a setter
    antis81 committed Nov 27, 2011
  3. wrapped GIT_SORT_… flags to Qt style flags; avoid forcing direct usag…

    …e of libgit2 headers
    antis81 committed Nov 27, 2011
  4. Fix buggy behavior in QGitOId

    length() returns length as number of hex chars (because this is what
    the lookup_prefix functions expect.
    Internal data structure correctly resized to half the number of
    hex chars, because that is the size of the binary representation.
    Array resized after calling the parse function, because it actually
    writes to all 20 bytes, zeroing what remains after parsing the given
    The truncation resulting in dividing an odd number of chars by two
    correctly corresponds to the last char being ignored by libgit2 if
    length is odd.
    committed Nov 27, 2011
Commits on Nov 26, 2011
  1. Add undefined method

    committed Nov 26, 2011
  2. Store error message in exception object

    This was necessary, because git_lasterror was not always set for all errors.
    In cases where lasterror is not set, we need to call git_strerror() instead,
    and we need to store the result somewhere. Alternatively, we could store the
    error code, and call strerror() in "what", but this is a better approach.
    committed Nov 26, 2011
  3. QGitTreeEntry::toObject() re-throws

    I actually want to remove this function, and use repo.lookupAny(entry.oid()) instead.
    It's more consistent because I have been doing similar changes in other places, and
    it will be consistent with other functions like repo.lookupCommit(entry.oid()).
    committed Nov 26, 2011
Commits on Nov 23, 2011
  1. QGitRepository functions throw exception on any error

    Helper function added that throws if the return value is an error value.
    committed Nov 23, 2011
  2. Start of exception support

    committed Nov 23, 2011
  3. Add deleteTag() function

    committed Nov 23, 2011
  4. Add listTags() function

    committed Nov 23, 2011
Commits on Nov 22, 2011
  1. Rename signature classes

    Use the "Builder" terminology known from Java.
    QGitSignatureRef became QGitSignature, and the former QGitSignature became QGitSignatureBuilder
    committed Nov 22, 2011
  2. Update docs

    committed Nov 22, 2011
  3. const methods

    antis81 committed with Nov 21, 2011
Commits on Nov 21, 2011
  1. Add QGitRepository::head()

    committed Nov 21, 2011
  2. Proper git index resource management

    Don't create dangling pointer, and use a similar constructor API as other
    classes I've been working on.
    committed Nov 21, 2011
  3. Change repo init function from a ctor to a member function

    This is more consistent with the open() functions
    committed Nov 21, 2011
  4. Sanitize QGitRepository cleanup semantics

    Before, various things would cause the pointer to become dangling
    and git_repository_free to be called multiple times, such as:
    * Using the copy constructor
    * Using the functions that return a repository reference,
      like QGitObject::owner()
    Now we use a smart pointer to handle the cleanup, and unless we
    explicitly tell it to, QGitRepository will not take ownership
    of a pointer passed to the constructor.
    committed Nov 21, 2011
Commits on Nov 20, 2011
  1. Remove all gitlib2 headers from header files

    Forward declare all structs
    committed Nov 20, 2011