| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Commit 34e5d87e0512f2a3dfd6 left one of these unchanged we're trying
to read from a free'd repository.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Configuration options can come from different sources. Currently,
there is only support for reading them from a flat file, but it might
make sense to read it from a database at some point.
Move the parsing code into src/config_file.c and create an include
file include/git2/config_backend.h to allow for other backends to be
developed.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
|\ \ \
| |/ / |
|
| |\ \
| | | |
| | | | |
Support root commits
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| |\ \ \
| | | | |
| | | | | |
Fix tree-entry attribute convertion (fix corrupted trees)
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | | |
Magic constant replaced by direct to-string covertion because of:
1) with value length 6 (040000 - subtree) final tree will be corrupted;
2) for wrong values length <6 final tree will be corrupted too.
|
| |\ \ \
| | | | |
| | | | | |
Fix -Wunused-but-set-variable warnings
|
| | |/ /
| | | |
| | | |
| | | |
| | | | |
As of gcc 4.6 -Wall includes -Wunused-but-set-variable. Use GIT_UNUSED
or remove actually unused variables to prevent those warnings.
|
| |/ /
| | |
| | |
| | | |
make them run against a temporary clone of the test repository
|
| |\ \
| | | |
| | | | |
Fix memory leaks in the tests
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If we don't create any leaks in the tests, we can use them to search
for leaks in the implementation.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| |/ /
| | |
| | |
| | |
| | | |
Lists all the tag references in a repository using a custom callback.
Includes unit tests courtesy of Emeric Fermas <3
|
| | |
| | |
| | |
| | | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | | |
They were backtracking too deep into the filesystem on Linux, where the
tests were running directly on `tmp/`.
|
| | |
| | |
| | |
| | | |
This is what Git uses by default for all deflating.
|
| | |
| | |
| | |
| | | |
git_repository_path() and git_repository_workdir() respectively return the path to the git repository and the working directory. Those paths are absolute and normalized.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Weak tags (e.g. tags that point directly to a normal object instead of a
tag object) were failing to be packed.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These indicate an inconsistency in the repository which we've created,
so don't allow them.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| | |
| | |
| | |
| | | |
couldn't add new entry when inserting new one with `git_treebuilder_insert`.
|
| | | |
|
|\ \ \
| |/ / |
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
The git test repository was holding a wrongly named tag reference ("very-simple") pointing at a tag named "e90810b".
This mistake (mine :-/ ) originates back to https://github.com/libgit2/libgit2/commit/9282e92
Whole credit goes to @tclem for having spotted this.
|
| |\
| | |
| | |
| | |
| | |
| | | |
Conflicts:
include/git2/tag.h
src/tag.c
|
| | | |
|
| | |
| | |
| | |
| | | |
reference, if any
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
target
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
unknown id
|
| | | |
|
| |/
| |
| |
| | |
Signed-off-by: Vicent Marti <tanoku@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
If a variable is on its own, truth should be assumed. Check this is
true in our code.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
|/
|
|
|
|
|
| |
These tests are basic, but they should tell us when we've broken
something.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
|
|
|
|
|
|
| |
res/dummy/a and refs/stash must pass. The other rules are already
tested by the rest of the checks.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
|
|
|
|
| |
Internal methods are static and without the git prefix.
'Force' methods have a `_f` prefix to match the other 'force' methods.
|
|
|
|
| |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
|
|
|
| |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
|
|
|
| |
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
|
| |
|