| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Since we no longer need to push data to callbacks, there's no need for
this truct.
|
|
|
|
|
| |
Let's use the remote's default branch guessing instead of reinventing
one ourselves with callbacks.
|
|
|
|
|
| |
If the remote supports the symref protocol extension, then we return
that, otherwise we guess with git's rules.
|
|
|
|
|
| |
When using the local transport, we always have the symbolic information
available, so fill it.
|
|
|
|
|
| |
Add a symref_target field to git_remote_head to expose the symref
mappings to the user.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The protocol has a capability which allows the server to tell us which
refs are symrefs, so we can e.g. know which is the default branch.
This capability is different from the ones we already support, as it's
not setting a flag to true, but requires us to store a list of
refspec-formatted mappings.
This commit does not yet expose the information in the reference
listing.
|
|\
| |
| | |
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
|