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-11-19tree-cache: Fix error message typonulltoken
2013-11-19tree-cache: Don't segfault upon corruptionnulltoken
2013-11-19tree-cache: Zero out the allocated tree children arraynulltoken
2013-11-19tree-cache: Free the tree upon the detection of a corrupted childnulltoken
2013-01-09update copyrightsEdward Thomson
2012-12-12tree cache: loosen negative entry count checkNguyễn Thái Ngọc Duy
While C Git has been writing entry count -1 (ie. never other negative numbers) as invalid since day 1, it accepts all negative entry counts as invalid. JGit follows the same rule. libgit2 should also follow, or the index that works with C Git or JGit may someday be rejected by libgit2. Other reimplementations like dulwich and grit have not bothered with parsing or writing tree cache.
2012-06-08misc: Fix warnings from PVS Studio trialVicent Martí
2012-05-03Remove old and unused error codesVicent Martí
2012-04-23tree-cache: don't error out on a childless invalidated entryCarlos Martín Nieto
The code used to assume that there had to be data after the newline in a tree cache extension entry. This isn't true for a childless invalidated entry if it's the last one, as there won't be any children nor a hash to take up space. Adapt the off-by-one comparison to also work in this case. Fixes #633.
2012-02-13Update Copyright headerschu
Signed-off-by: schu <schu-github@schulog.org>
2011-10-29global: Properly use `git__` memory wrappersVicent Marti
Ensure that all memory related functions (malloc, calloc, strdup, free, etc) are using their respective `git__` wrappers.
2011-09-27Add git_tree_cache_getCarlos Martín Nieto
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-09-27Add git_tree_cache_invalidate_pathCarlos Martín Nieto
Whenever a file is updated in the index, each tree leading towards it needs to be invalidated. Provide the supporting function. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-09-27tree cache: correctly handle invalidated treesCarlos Martín Nieto
The fix introduced in a02fc2cd1 (2011-05-24; index: correctly parse invalidated TREE extensions) threw out the rest of the data in the extension if it found an invalidated entry. This was the result of incorrect reading of the documentation. Insted, keep reading the extension, as there may be cached data we can use. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-09-27Make tree cache name a flex-arrayCarlos Martín Nieto
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-09-27Move the tree cache functions to their own fileCarlos Martín Nieto
Rename git_index_tree to git_tree_cache. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>