| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Minor fix for cmn/clone-into-mirror.
|
|/
|
|
|
| |
A recently added check might skip initialization of old_fetchhead and go
directly to cleanup. So, destruct in the opposite order of construction.
|
| |
|
|\
| |
| | |
Restore attributions for fnmatch
|
| | |
|
|\ \
| |/
|/| |
Allow mirror-clone via `git_clone_into()`
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We set up the current branch after we fetch from the remote. This means
that the user's refspec may have already created this reference. It is
therefore not an error if we cannot create the branch because it already
exists.
This allows for the user to replicate git-clone's --mirror option.
|
| |
| |
| |
| |
| |
| | |
Instead of changing the user-provided remote, duplicate it so we can add
the extra refspec without having to worry about unsetting it before
returning.
|
| |
| |
| |
| |
| | |
Show a failure to perform a mirror-clone from a repository, both local
and remote.
|
|\ \
| | |
| | | |
message: don't assume the comment char
|
| | |
| | |
| | |
| | |
| | | |
The comment char is configurable and we need to provide a way for the
user to specify which comment char they chose for their message.
|
|\ \ \
| | | |
| | | | |
WIP: Windows fixes
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
Fix warning on uninitialized variable.
|
|/ / / |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Windows has its own ftruncate() called _chsize_s().
p_mkstemp() is changed to use p_open() so we can make sure we open for
writing; the addition of exclusive create is a good thing to do
regardless, as we want a temporary path for ourselves.
Lastly, MSVC doesn't quite know how to add two numbers if one of them is a
void pointer, so let's alias it to unsigned char.C
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some OSs cannot keep their ideas about file content straight when mixing
standard IO with file mapping. As we use mmap for reading from the
packfile, let's make writing to the pack file use mmap.
|
|\ \ \ \
| |/ / /
|/| | | |
Test and fix Git diff binary detection compatibility
|
| | | |
| | | |
| | | |
| | | |
| | | | |
A variety of data patterns for diffs verified to match the
behavior of binary detection with Git on the command line.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Win32: Supply _O_NOINHERIT when calling _wopen
|
|/ / / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Remote deletion
|
| | | |
| | | |
| | | |
| | | |
| | | | |
When we delete a remote, we also need to go through its fetch refspecs
and remove the references they create locally.
|
| | | |
| | | |
| | | |
| | | | |
This should make it more readable and allocate a bunch fewer strings.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
pack: init the cache on packfile alloc
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When running multithreaded, it is not enough to check for the offmap
allocation. Move the call to cache_init() to packfile allocation so we
can be sure it is always allocated free of races.
This fixes #2355.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Better global search path sandboxing in tests
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
There are a number of tests that modify the global or system
search paths during the tests. This adds a helper function to
make it easier to restore those paths and makes sure that they
are getting restored in a manner that preserves test isolation.
|
| |_|/
|/| | |
|
|\ \ \
| | | |
| | | | |
Initialize local variable
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Increase config snapshot usage
|
| | | | |
| | | | |
| | | | |
| | | | | |
And decrease extra reload checks of config data.
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Add R bindings to the README
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Improve checks for ignore containment
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The diff code was using an "ignored_prefix" directory to track if
a parent directory was ignored that contained untracked files
alongside tracked files. Unfortunately, when negative ignore rules
were used for directories inside ignored parents, the wrong rules
were applied to untracked files inside the negatively ignored
child directories.
This commit moves the logic for ignore containment into the workdir
iterator (which is a better place for it), so the ignored-ness of
a directory is contained in the frame stack during traversal. This
allows a child directory to override with a negative ignore and yet
still restore the ignored state of the parent when we traverse out
of the child.
Along with this, there are some problems with "directory only"
ignore rules on container directories. Given "a/*" and "!a/b/c/"
(where the second rule is a directory rule but the first rule is
just a generic prefix rule), then the directory only constraint
was having "a/b/c/d/file" match the first rule and not the second.
This was fixed by having ignore directory-only rules test a rule
against the prefix of a file with LEADINGDIR enabled.
Lastly, spot checks for ignores using `git_ignore_path_is_ignored`
were tested from the top directory down to the bottom to deal with
the containment problem, but this is wrong. We have to test bottom
to top so that negative subdirectory rules will be checked before
parent ignore rules.
This does change the behavior of some existing tests, but it seems
only to bring us more in line with core Git, so I think those
changes are acceptable.
|
|\ \ \ \
| | | | |
| | | | | |
Make pack object lookup use loops
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The base object is a good cache candidate, so we shouldn't forget to add
it to the cache.
|