| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
gitfile is malformed and GIT_ENOTAREPO when the pointed dir is not a repo.
Fixed tests so that it check the right error code.
|
| | |
|
| |
|
|
|
|
| |
without trailing slash.
It used to discard the last directory if the path didn't have a trailing slash.
|
| | |
|
| | |
|
| |
|
|
|
| |
Now the ceiling_dirs are compared with their symbolic free version (like base_path).
The ceiling dirs check is now performed after getting the parent directory.
|
| |
|
|
| |
the git directory that manage a given directory path.
|
| |
|
|
| |
directories path) and the complete public destructor.
|
| |
|
|
| |
extract the git directory path.
|
| |
|
|
|
|
|
|
| |
path.
retrieve_device returns the file device for a given path (so that we can detect device change while walking through parent directories).
abspath returns a canonicalized path, symbolic link free.
retrieive_ceiling_directories_offset returns the biggest path offset that path match in the ceiling directory list (so that we can stop at ceiling directories).
|
| |
|
|
| |
Added gitfo_creat_locked and gitfo_creat_locked_force
|
| |
|
|
|
|
| |
Conflicts:
src/fileops.c
|
| |
|
|
|
|
| |
alternate basepath.
Fixed a Windows TO-DO in the prettifying functions.
|
| | |
|
| |
|
|
| |
gitfo_retrieve_path_root_offset (like other public functions). Added platform specific directory separator definition.
|
| |\
| |
| | |
Fix fake wstream write
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Fixed forgot to check that prefix length is greater than minimum prefix length in read_unique_short_oid method from pack backend.
|
| | |
| |
| |
| | |
cache when searching objects from a short oid.
|
| | |
| |
| |
| | |
compare methods (0 means oids match). Added method to compare prefixes of hex formatted oids.
|
| | |
| |
| |
| | |
for oid prefixes (set to 4, like in git). Consequently updated some object lookup methods and their documentation.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
backend.
Implemented find_unique_short_oid for pack backend, based on git sha1 lookup method;
finding an object given its full oid is just a particular case of searching
the unique object matching an oid prefix (short oid).
Added git_odb_read_unique_short_oid, which iterates over all the backends to
find and read the unique object matching the given oid prefix.
Added a git_object_lookup_short_oid method to find the unique object in
the repository matching a given oid prefix : it generalizes git_object_lookup
which now does nothing but calls git_object_lookup_short_oid.
|
| | |
| |
| |
| | |
nth hexadecimal characters (i.e. packets of 4 bits) of OIDs.
|
| | |
| |
| |
| | |
find objects from sha1 prefixes in the future. Default implementations throw GIT_ENOTIMPLEMENTED for strict prefixes (i.e. length < GIT_OID_HEXSZ).
|
| |\ \
| | |
| | | |
Fix tag and signature parsing
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Before this commit, malformed tag and signature were considered as
valid by the parser. See the test t3800-mktag.sh of git to see example
of malformed tag and signature.
|
| |\ \ \
| | | |
| | | | |
Fix typos
|
| | |/ /
| | |
| | |
| | | |
Signed-off-by: schu <schu-github@schulog.org>
|
| |\ \ \
| | | |
| | | | |
Plug a leak in the index unmerged entries vector
|
| | | | |
| | | |
| | | |
| | | | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| |\ \ \ \
| | | | |
| | | | | |
Config bugfix
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Nothing is allowed betwen the closing quotation mark and the ] so
return an error if there is.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also free the subsection if we find too many quotes
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
If parse_section_header{,_ext} return an error, current_section
doesn't get allocated. Set it to NULL after freeing so we don't try to
free it again.
This fixes part 2-2 of Issue #210.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Simplify cfg_readline and at the same time fix it so that it does
really ignore empty lines.
This fixes point 2-1 of Issue #210
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
On error, it would free the configuration object even though it didn't
own that memory, which would cause a double-free.
This fixes the first part of Issue #210
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| |\ \ \ \
| | | | |
| | | | | |
Add git_repository_is_bare() accessor
|
| | |/ / / |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A TREE extension with an entry count of -1 means that it was
invalidated and we should ignore it. Do so instead of returning an
error.
This fixes issue #202
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
There are two reasons why read_tree_internal might return a NULL
tree. The first one is a corrupt index, but the second one is an
invalidated TREE extension. Up to now, its only way to communicate
with its caller was through the return value being NULL or not.
Allow read_tree_internal to report its exit status independently from
the tree pointer.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| |/ / /
| | |
| | |
| | |
| | | |
The `git_repository_index` call now returns a brand new index that must
be manually free'd.
|
| |/ /
| |
| |
| | |
This allows to successfully build libgit2 with waf on Windows.
|