All the commits have been squashed into a single one before refactoring the final code, to keep everything tidy. Individual commit messages are as follows: Added repository reference looking up functionality placeholder. Added basic reference database definition and caching infrastructure. Removed useless constant. Added GIT_EINVALIDREFNAME error and description. Added missing description for GIT_EBAREINDEX. Added GIT_EREFCORRUPTED error and description. Added GIT_ETOONESTEDSYMREF error and description. Added resolving of direct and symbolic references. Prepared the packed-refs parsing. Added parsing of the packed-refs file content. When no loose reference has been found, the full content of the packed-refs file is parsed. All of the new (i.e. not previously parsed as a loose reference) references are eagerly stored in the cached references storage. The method packed_reference_file__parse() is in deer need of some refactoring. :-) Extracted to a method the parsing of the peeled target of a tag. Extracted to a method the parsing of a standard packed ref. Fixed leaky removal of the cached references. Ensured that a previously parsed packed reference isn't returned if a more up-to-date loose reference exists. Enhanced documentation of git_repository_reference_lookup(). Moved some refs related constants from repository.c to refs.h. Made parsing of a packed tag reference more robust. Updated git_repository_reference_lookup() documentation. Added some references to the test repository. Added some tests covering tag references looking up. Added some tests covering symbolic and head references looking up. Added some tests covering packed references looking up.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
resources | Loading commit data... | |
.gitignore | Loading commit data... | |
NAMING | Loading commit data... | |
t0002-refcnt.c | Loading commit data... | |
t0003-strutil.c | Loading commit data... | |
t0004-vector.c | Loading commit data... | |
t0005-path.c | Loading commit data... | |
t0020-dirent.c | Loading commit data... | |
t0101-hash.c | Loading commit data... | |
t0101-oid.c | Loading commit data... | |
t0102-objtype.c | Loading commit data... | |
t0103-objhash.c | Loading commit data... | |
t0201-existsloose.c | Loading commit data... | |
t0202-readloose.c | Loading commit data... | |
t0203-readloose.c | Loading commit data... | |
t0204-readpack.c | Loading commit data... | |
t0205-readheader.c | Loading commit data... | |
t0301-write.c | Loading commit data... | |
t0401-parse.c | Loading commit data... | |
t0402-details.c | Loading commit data... | |
t0403-write.c | Loading commit data... | |
t0501-walk.c | Loading commit data... | |
t0502-list.c | Loading commit data... | |
t0601-read.c | Loading commit data... | |
t0602-write.c | Loading commit data... | |
t0603-sort.c | Loading commit data... | |
t0701-table.c | Loading commit data... | |
t0702-tableit.c | Loading commit data... | |
t0801-readtag.c | Loading commit data... | |
t0802-write.c | Loading commit data... | |
t0901-readtree.c | Loading commit data... | |
t0902-modify.c | Loading commit data... | |
t1001-readtag.c | Loading commit data... | |
t1002-readsymref.c | Loading commit data... | |
t1003-readpackedref.c | Loading commit data... | |
test_helpers.c | Loading commit data... | |
test_helpers.h | Loading commit data... | |
test_lib.c | Loading commit data... | |
test_lib.h | Loading commit data... | |
test_main.c | Loading commit data... | |
tests.supp | Loading commit data... |