summaryrefslogtreecommitdiff
path: root/src/tree.c
Commit message (Expand)AuthorAgeFilesLines
* tree: reject writing null-OID entries to a treePatrick Steinhardt2018-01-261-0/+6
* tree: standard error messages are lowercaseethomson/tree_error_messagesEdward Thomson2017-12-311-10/+10
* Make sure to always include "common.h" firstPatrick Steinhardt2017-07-031-2/+2
* treebuilder: exit early if running OOM in `write_with_buffer`Patrick Steinhardt2017-03-281-3/+4
* treebuilder: remove shadowing variable in `write_with_buffer`Patrick Steinhardt2017-03-281-1/+1
* treebuilder: fix memory leaks in `write_with_buffer`Patrick Steinhardt2017-03-281-7/+8
* strmap: remove GIT__USE_STRMAP macroPatrick Steinhardt2017-02-171-2/+0
* khash: avoid using macro magic to get return addressPatrick Steinhardt2017-02-171-2/+2
* Merge pull request #3892 from mitesch/shared_bufferEdward Thomson2017-01-211-15/+30
|\
| * write_tree: use shared buffer for writing treesMichael Tesch2016-12-121-15/+30
* | giterr_set: consistent error messagesEdward Thomson2016-12-291-5/+5
* | tree: look for conflicts in the new tree when updatingcmn/tree-updater-orderingCarlos Martín Nieto2016-11-141-0/+3
* | tree: use the sorted update list in our loopCarlos Martín Nieto2016-11-141-2/+2
* | common: cast precision specifiers to intPatrick Steinhardt2016-11-141-2/+2
* | tree: validate filename and OID length when parsing objectPatrick Steinhardt2016-10-071-1/+6
|/
* Merge pull request #3792 from edquist/miscEdward Thomson2016-05-261-1/+1
|\
| * Fix comment for GIT_FILEMODE_LINKCarl Edquist2016-05-181-1/+1
* | tree: handle removal of all entries in the updatercmn/remove-single-entryCarlos Martín Nieto2016-05-241-0/+9
* | tree: plug leaks in the tree updatercmn/tree-update-basenameCarlos Martín Nieto2016-05-191-3/+11
* | tree: use the basename for the entry removalCarlos Martín Nieto2016-05-191-1/+1
|/
* Introduce a function to create a tree based on a different onecmn/tree-updateCarlos Martín Nieto2016-05-171-0/+245
* Plug a few leaksCarlos Martín Nieto2016-03-311-0/+2
* tree: drop the now-unnecessary entries vectorEdward Thomson2016-03-221-44/+29
* tree: store the entries in a growable arraycmn/tree-reuseCarlos Martín Nieto2016-03-201-57/+36
* tree: re-use the id and filename in the odb objectCarlos Martín Nieto2016-03-201-39/+51
* treebuilder: don't try to verify submodules exist in the odbcmn/treebuilder-submoduleCarlos Martín Nieto2016-03-041-1/+2
* treebuilder: validate tree entries (optionally)Edward Thomson2016-02-281-0/+15
* tree: zap warnings around `size_t` vs `uint16_t`Edward Thomson2016-02-161-10/+16
* tree: mark a tree as already sortedcmn/tree-is-sortedCarlos Martín Nieto2015-12-061-1/+2
* tree: use a specialised mode parse functioncmn/parse-modeCarlos Martín Nieto2015-12-021-5/+21
* tree: mark cloned tree entries as un-pooledPatrick Steinhardt2015-12-011-0/+2
* tree: ensure the entry filename fits in 16 bitscmn/tree-parse-speedCarlos Martín Nieto2015-11-301-16/+26
* tree: make path len uint16_t and avoid holesCarlos Martín Nieto2015-11-281-1/+1
* tree: calculate the filename length onceCarlos Martín Nieto2015-11-281-5/+8
* tree: pool the entry memory allocationsCarlos Martín Nieto2015-11-281-5/+29
* tree: avoid advancing over the filename multiple timesCarlos Martín Nieto2015-11-281-4/+2
* tree: add more correct error messages for not foundCarlos Martín Nieto2015-03-171-2/+2
* Remove extra semicolon outside of a functionStefan Widgren2015-02-151-1/+1
* Make our overflow check look more like gcc/clang'sEdward Thomson2015-02-131-11/+7
* overflow checking: don't make callers set oomEdward Thomson2015-02-121-3/+1
* allocations: test for overflow of requested sizeEdward Thomson2015-02-121-5/+13
* treebuilder: rename _create() to _new()cmn/treebuilder-newCarlos Martín Nieto2014-12-271-2/+2
* treebuilder: take a repository for path validationEdward Thomson2014-12-171-14/+16
* tree: Check for `.git` with case insensitivyVicent Marti2014-12-161-1/+1
* index: fill the tree cache on write-treeCarlos Martín Nieto2014-10-101-1/+16
* index: write out the tree cache extensionCarlos Martín Nieto2014-10-101-2/+2
* tree: free in error conditionsCarlos Martín Nieto2014-06-251-0/+2
* treentry: no need for manual size book-keepingcmn/treebuilder-perfCarlos Martín Nieto2014-06-101-9/+6
* treebuilder: don't keep removed entries aroundCarlos Martín Nieto2014-06-101-34/+17
* treebuilder: use a map instead of vector to store the entriesCarlos Martín Nieto2014-06-101-49/+74