| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\ |
|
| | |
|
|\ \
| |/
| |
| |
| | |
Conflicts:
include/git2.h
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Relative, absolute and home-relative paths are supported. The
recursion limit it set at 10, just like in git.
|
|/ |
|
|
|
|
|
|
| |
In order to be loaded, a remote needs to be configured with at least a `url` or a `pushurl`.
ENOTFOUND will be returned when trying to git_remote_load() a remote with neither of these entries defined.
|
| |
|
|\
| |
| | |
push: handle tag chains correctly
|
| | |
|
|\ \
| | |
| | | |
Bigger buffer for utf-8 parsing in win32
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
This is based on 24634c6fd02b2240e4a93fad70a08220f8fb793a.
This also corrects an issue with error codes being mixed up with the
number of found objects.
|
|\ \
| | |
| | | |
More tests for ambiguous OIDs across packs
|
| |/
| |
| |
| |
| |
| |
| | |
The test coverage for ambiguous OIDs was pretty thin. This adds
a bunch of new objects both in packs, across packs, and loose that
match to 8 characters so that we can test various cases of
ambiguous lookups.
|
|/ |
|
|
|
|
|
|
| |
The old tests didn't try failing lookups or lookups across
multiple config files with some having the pattern and some
not having it.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
There was a problem found in the Rugged test suite where the
refdb_fs_backend__next function could exit too early in some
very specific hashing patterns for packed refs. This ports
the Rugged test to libgit2 and then fixes the bug.
|
|
|
|
|
|
| |
Older versions of git would only write peeled entries for
items under refs/tags/. Newer versions will write them for
all refs, and we should be prepared to handle that.
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Fix sort order problem with submodules where "mod" was sorting
after "mod-plus" because they were being sorted as "mod/" and
"mod-plus/". This involved pushing the "contains a .git entry"
test significantly lower in the stack.
2. Reinstate behavior that a directory which contains a .git entry
will be treated as a submodule during iteration even if it is
not yet added to the .gitmodules.
3. Now that any directory containing .git is reported as submodule,
we have to be more careful checking for GIT_EEXISTS when we
do a submodule lookup, because that is the error code that is
returned by git_submodule_lookup when you try to look up a
directory containing .git that has no record in gitmodules or
the index.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The iterator APIs are not currently consistent with the parameter
ordering of the rest of the codebase. This rearranges the order
of parameters, simplifies the naming of a number of functions, and
makes somewhat better use of macros internally to clean up the
iterator code.
This also expands the test coverage of iterator functionality,
making sure that case sensitive range-limited iteration works
correctly.
|
|\
| |
| | |
More tests (and fixes) for initializing repo from template
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When PR #1359 removed the hooks from the test resources/template
directory, it made me realize that the tests for
git_repository_init_ext using templates must be pretty shabby
because we could not have been testing if the hooks were getting
created correctly.
So, this started with me recreating a couple of hooks, including
a sample and symlink, and adding tests that they got created
correctly in the various circumstances, including with the SHARED
modes, etc. Unfortunately this uncovered some issues with how
directories and symlinks were copied and chmod'ed. Also, there
was a FIXME in the code related to the chmod behavior as well.
Going back over the directory creation logic for setting up a
repository, I found it was a little difficult to read and could
result in creating and/or chmod'ing directories that the user
almost certainly didn't intend.
So that let to this work which makes repo initialization much
more careful (and hopefully easier to follow). It required a
couple of extensions / changes to core fileops utilities, but I
also think those are for the better, at least for git_futils_cp_r
in terms of being careful about what actions it takes.
|
|\ \
| |/
|/| |
Add file similarity scoring to diff rename/copy detection
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds some new tests that actually exercise the similarity
metric between files to detect renames, copies, and split modified
files that are too heavily modified.
There is still more testing to do - these tests are just partially
covering the cases.
There is also one bug fix in this where a change set with only
MODIFY being broken into ADD/DELETE (due to low self-similarity)
without any additional RENAMED entries would end up not processing
the split requests (because the num_rewrites counter got reset).
|
|/
|
|
|
| |
Getting rid of sample hook files from test repos as they just take up
space with no value.
|
|\
| |
| | |
Topic/diff tree coverage
|
| | |
|
|/ |
|
|
|
|
| |
Also ammends one of the tag tests to make sure it's working.
|
| |
|
| |
|
|
|
|
|
|
| |
Before, it was identical to the default template making it difficult
to check, if the proper template was copied an external template
test.
|
|\
| |
| | |
Add a failing test for CRLF filters
|
| | |
|
| | |
|
|/
|
|
|
| |
Currently, push doesn't really handle tags when queueing objects. Fix
it.
|
|
|
|
|
|
|
|
|
|
|
| |
There are many different broken filemodes in the wild so we need to
protect against them and give something useful up the chain. Don't
fail when reading a tree from the ODB but normalize the mode as best
we can.
As 664 is no longer a mode that we consider to be valid and gets
normalized to 644, we can stop accepting it in the treebuilder. The
library won't expose it to the user, so any invalid modes are a bug.
|
|\
| |
| | |
Add API to calculate ahead/behind count
|
| |
| |
| |
| |
| | |
Adds a repo with a more complex topology to test the ahead-behind
count.
|
|\ \
| | |
| | | |
Push! By schu, phkelley, and congyiwu
|
| | | |
|