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-17Port tests from PR 1683Russell Belfer
This ports over some of the tests from https://github.com/libgit2/libgit2/pull/1683 by @yorah and @ethomson
2013-09-17Merge git_buf and git_bufferRussell Belfer
This makes the git_buf struct that was used internally into an externally available structure and eliminates the git_buffer. As part of that, some of the special cases that arose with the externally used git_buffer were blended into the git_buf, such as being careful about git_buf objects that may have a NULL ptr and allowing for bufs with a valid ptr and size but zero asize as a way of referring to externally owned data.
2013-09-17Add ident filterRussell Belfer
This adds the ident filter (that knows how to replace $Id$) and tweaks the filter APIs and code so that git_filter_source objects actually have the updated OID of the object being filtered when it is a known value.
2013-09-17Extend public filter api with filter listsRussell Belfer
This moves the git_filter_list into the public API so that users can create, apply, and dispose of filter lists. This allows more granular application of filters to user data outside of libgit2 internals. This also converts all the internal usage of filters to the public APIs along with a few small tweaks to make it easier to use the public git_buffer stuff alongside the internal git_buf.
2013-09-17Create public filter object and use itRussell Belfer
This creates include/sys/filter.h with a basic definition of a git_filter and then converts the internal code to use it. There are related internal objects (git_filter_list) that we will want to publish at some point, but this is a first step.
2013-09-14Add tests for git_tree_walkRussell Belfer
This tests the fixes for issues from #1849
2013-09-07odb: Prevent stream_finalize_write() from overwritingnulltoken
Now that #1785 is merged, git_odb_stream_finalize_write() calculates the object id before invoking the odb backend. This commit gives a chance to the backend to check if it already knows this object.
2013-09-07blob: Slightly enforce a create_fromchunks() testnulltoken
2013-08-15odb: wrap the stream reading and writing functionsCarlos Martín Nieto
This is in preparation for moving the hashing to the frontend, which requires us to handle the incoming data before passing it to the backend's stream.
2013-07-15Fixcrazymaster
2013-07-15Fix typocrazymaster
2013-07-15Revert "Replace Japanese characters with the encoded hexadecimal values"crazymaster
This reverts commit a91e4d6b21e141c2abc76b65b2d4c91d5d3e03cc.
2013-07-15Replace Japanese characters with the encoded hexadecimal valuescrazymaster
2013-07-14Add test for multi-byte characterscrazymaster
2013-05-29Fix memory leak in oid shortener testsRussell Belfer
2013-05-24Merge pull request #1595 from arrbee/even-more-rename-fixesVicent Martí
Even more rename detection fixes
2013-05-23Add testcase for #1600Axel Wagner
2013-05-22Significant rename detection rewriteRussell Belfer
This flips rename detection around so instead of creating a forward mapping from deltas to possible rename targets, instead it creates a reverse mapping, looking at possible targets and trying to find a source that they could have been renamed or copied from. This is important because each output can only have a single source, but a given source could map to multiple outputs (in the form of COPIED records). Additionally, this makes a couple of tweaks to the public rename detection APIs, mostly renaming a couple of options that control the behavior to make more sense and to be more like core Git. I walked through the tests looking at the exact results and updated the expectations based on what I saw. The new code is different from the old because it cannot give some nonsense results (like A was renamed to both B and C) which were part of the outputs previously.
2013-05-21tag: Introduce git_tag_annotation_create()nulltoken
2013-05-18Add git_oid_nfmt - a flexible OID formatterRussell Belfer
I frequently want to the the first N digits of an OID formatted as a string and I'd like it to be efficient. This function makes that easy and I could rewrite the OID formatters in terms of it.
2013-05-07Fix win32 type warningsRussell Belfer
2013-05-06Merge pull request #1526 from arrbee/cleanup-error-return-without-msgVicent Martí
Make sure error messages are set for most error returns
2013-05-04Remove obsolete test for peel typeRussell Belfer
Peeling to an invalid type is now checked via an assert so this test is no longer relevant.
2013-05-02Extra threading testsRussell Belfer
We need to hammer the packfile open phase harder in the thread tests, in addition to the cache API.
2013-04-22cache: Max cache size, and evict when the cache fills upvmg/new-cacheVicent Marti
2013-04-22tests: Do not warn for unused variableVicent Marti
2013-04-22Make indexer use shared packfile open codeRussell Belfer
The indexer was creating a packfile object separately from the code in pack.c which was a problem since I put a call to git_mutex_init into just pack.c. This commit updates the pack function for creating a new pack object (i.e. git_packfile_check()) so that it can be used in both places and then makes indexer.c use the shared initialization routine. There are also a few minor formatting and warning message fixes.
2013-04-22Add tests for oidmap and new cache with threadingRussell Belfer
This adds some basic tests for the oidmap just to make sure that collisions, etc. are dealt with correctly. This also adds some tests for the new caching that check if items are inserted (or not inserted) properly into the cache, and that the cache can hold up in a multithreaded environment without error.
2013-04-22What has science done.Vicent Marti
2013-04-21Move odb_backend implementors stuff into git2/sysRussell Belfer
This moves some of the odb_backend stuff that is related to the internals of an odb_backend implementation into include/git2/sys. Some of the stuff related to streaming I left in include/git2 because it seemed like it would be reasonably needed by a normal user who wanted to stream objects into and out of the ODB. Also, I added APIs for traversing the list of backends so that some of the tests would not need to access ODB internals.
2013-03-31tag: Fix parsing when no tagger nor messagenulltoken
2013-03-31tests: Fix indentationsnulltoken
2013-03-26Move crlf conversion into buf_textRussell Belfer
This adds crlf/lf conversion functions into buf_text with more efficient implementations that bypass the high level buffer functions. They attempt to minimize the number of reallocations done and they directly write the buffer data as needed if they know that there is enough memory allocated to memcpy data. Tests are added for these new functions. The crlf.c code is updated to use the new functions. Removed the include of buf_text.h from filter.h and just include it more narrowly in the places that need it.
2013-03-07immutable references and a pluggable ref databaseEdward Thomson
2013-02-26Revert "hash: remove git_hash_init from internal api"Michael Schubert
This reverts commit efe7fad6c96a3d6197a218aeaa561ec676794499, except for the indentation fixes.
2013-02-26hash: remove git_hash_init from internal apiMichael Schubert
Along with that, fix indentation in tests-clar/object/raw/hash.c
2013-02-20Add more treebuilder testsRussell Belfer
The recent changes with git_treebuilder_entrycount point out that the test coverage for git_treebuilder_remove and git_treebuilder_entrycount is completely absent. This adds tests.
2013-01-23Seperate out a new test that verifies packed-refs with no trailing newlineScott J. Goldman
as per @vmg's request
2013-01-23Allow peeled references without trailing newline at end of fileScott J. Goldman
Also ammends one of the tag tests to make sure it's working.
2013-01-12add an index_remove_bypath that removes conflicts, renamed add_from_workdir ↵Edward Thomson
to match
2013-01-05Make git_oid_tostr use out buffer for NULL oidRussell Belfer
Previously a NULL oid was handled like an empty buffer and returned a status empty string. This makes git_oid_tostr() set the output buffer to the empty string instead.
2012-12-14tests: Fix unused temp repoVicent Marti
2012-12-10Clean up GCC build warningsBen Straub
2012-12-07tree: relax the filemode parserCarlos Martín Nieto
There are many different broken filemodes in the wild so we need to protect against them and give something useful up the chain. Don't fail when reading a tree from the ODB but normalize the mode as best we can. As 664 is no longer a mode that we consider to be valid and gets normalized to 644, we can stop accepting it in the treebuilder. The library won't expose it to the user, so any invalid modes are a bug.
2012-12-01object: refine git_object_peel() error reportnulltoken
2012-12-01tag: Deploy EINVALIDSPEC usagenulltoken
2012-11-30Merge pull request #1110 from libgit2/features/push_rebasedVicent Martí
Push! By schu, phkelley, and congyiwu
2012-11-29Remove git_object_oid2typePhilip Kelley
2012-11-28Consolidate text buffer functionsRussell Belfer
There are many scattered functions that look into the contents of buffers to do various text manipulations (such as escaping or unescaping data, calculating text stats, guessing if content is binary, etc). This groups all those functions together into a new file and converts the code to use that. This has two enhancements to existing functionality. The old text stats function is significantly rewritten and the BOM detection code was extended (although largely we can't deal with anything other than a UTF8 BOM).
2012-11-28Push! By schu, phkelley, and congyiwu, et alPhilip Kelley