Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-30commit: Trim message leading newlinesnulltoken
Fix libgit2/libgit2sharp#522
2013-09-30Tabify indentationsnulltoken
2013-06-11signature: extend trimming to more whitespaceCarlos Martín Nieto
There are all sorts of misconfiguration in the wild. We already rely on the signature constructor to trim SP. Extend the logic to use `isspace` to decide whether a character should be trimmed.
2013-05-16Fix trailing whitespacesnulltoken
2013-05-15signature: Lenient when dupping, strict when creatingVicent Marti
2013-05-03fix some leaksEdward Thomson
2013-04-22tests: Cleanup commit parse testing codeVicent Marti
2013-04-22Simplify object table parse functionsRussell Belfer
This unifies the object parse functions into one signature that takes an odb_object.
2013-04-22Add callback to git_objects_tableRussell Belfer
This adds create and free callback to the git_objects_table so that more of the creation and destruction of objects can be table driven instead of using switch statements. This also makes the semantics of certain object creation functions consistent so that we can make better use of function pointers. This also fixes a theoretical error case where an object allocation fails and we end up storing NULL into the cache.
2013-04-15commit: correctly detect the start of the commit messageCarlos Martín Nieto
The end of the header is signaled by to consecutive LFs and the commit message starts immediately after. Jumping over LFs at the start of the message is a bug and leads to creating different commits if when rebuilding history. This also fixes an empty commit message being returned as "\n".
2013-03-15Fix various build warningsRussell Belfer
This fixes various build warnings on Mac and Windows (64-bit).
2013-03-07immutable references and a pluggable ref databaseEdward Thomson
2013-02-20Simplify signature parsingVicent Marti
2013-01-25Use cl_assert_equal_s() instead of strcmp().Sebastian Bauer
Replaced all cl_assert(!strcmp()) or semantically equivalent forms by cl_assert_equal_s().
2013-01-22Parse commit time as uint64_t to avoid overflowRussell Belfer
The commit time is already stored as a git_time_t, but we were parsing is as a uint32_t. This just switches the parser to use uint64_t which will handle dates further in the future (and adds some tests of those future dates).
2013-01-18Add skipping of unknown commit headersRussell Belfer
This moves the check for the "encoding" header into a loop which is just scanning for non-required headers at the end of a commit header. That loop will skip unrecognized lines (including header continuation lines) until a terminating completely blank line is found, and only then does it move to reading the commit message.
2012-12-04Remove GIT_SIGNATURE_VERSION and friendsBen Straub
2012-12-01Add version fields and init macros for public input structs.Ben Straub
2012-11-28Rename ref and reflog apis for consistencyBen Straub
2012-11-23Reset all static variables to NULL in clar's __cleanupSascha Cunz
Without this change, any failed assertion in the second (or a later) test inside a test suite has a chance of double deleting memory, resulting in a heap corruption. See #1096 for details. This leaves alone the test cases where we "just" use cl_git_sandbox_init() and cl_git_sandbox_cleanup(). These methods already take good care to not double delete a repository. Fixes #1096
2012-07-12Merge pull request #805 from nulltoken/fix/revwalk-email-parsingVicent Martí
Fix revwalk email parsing
2012-07-12commit: introduce git_commit_nth_gen_ancestor()nulltoken
2012-07-11signature: prevent angle bracket usage in identitynulltoken
2012-05-18errors: Rename the generic return codesVicent Martí
2012-04-03tests-clar/commit: fix memory leaksschu
Signed-off-by: schu <schu-github@schulog.org>
2012-04-03tests: Cleanup & fix test suiteVicent Martí
2012-03-21Ported t04_commit.c to Clar.Ben Straub
Created a copy of tests/resources/testrepo.git that is compatible with the Clar sandboxing helpers. Restructured commit test suites to use Clar sandbox helpers. Now using typed data arrays rather than lots of macros to define test cases.
2012-02-15commit: actually allow yet to be born update_refschu
git_commit_create is supposed to update the given reference "update_ref", but segfaulted in case of a yet to be born reference. Fix it. Signed-off-by: schu <schu-github@schulog.org>