| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This is a path so we must use the path getter so we get the tilde
expansion done.
|
|\
| |
| | |
Handle 8dot3 filenames being disabled on Win32
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
config: add parsing and getter for paths
|
| | |
|
|\ \
| | |
| | | |
Allow passing a NULL index to git_repository_set_index()
|
| | |
| | |
| | |
| | |
| | |
| | | |
This is supported by the underlying set_index() implementation
and setting the repository index to NULL is recommended by the
git_repository_set_bare() documentation.
|
|\ \ \
| | | |
| | | | |
More coverity fixes
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fixed git_repository_set_bare() not setting "core.bare" correctly
|
| | |/ /
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
openssl: Add all required includes for AF_INET6 and in6_addr.
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This fixes the build at least on FreeBSD, where those types were not
defined indirectly:
src/openssl_stream.c:100:18: error: variable has incomplete type 'struct in6_addr'
struct in6_addr addr6;
^
src/openssl_stream.c:100:9: note: forward declaration of 'struct in6_addr'
struct in6_addr addr6;
^
src/openssl_stream.c:111:18: error: use of undeclared identifier 'AF_INET'
if (p_inet_pton(AF_INET, host, &addr4)) {
^
src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton'
^
src/openssl_stream.c:115:18: error: use of undeclared identifier 'AF_INET6'
if(p_inet_pton(AF_INET6, host, &addr6)) {
^
src/unix/posix.h:31:40: note: expanded from macro 'p_inet_pton'
^
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
pathspec_match_free() should not dereference a NULL passed to it.
I found this issue when I tried to run example log program with
nonexistent branch:
./example/log help
Such call leads to segmentation fault.
|
|/ / |
|
|\ \
| | |
| | | |
Remove logically dead code (we're already asserting)
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On case insensitive filesystems, we may have files in the working
directory that case fold to a name we want to write. Remove those
files (by default) so that we will not end up with a filename that
has the unexpected case.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Don't bother trying to recreate the previously created directory
during checkout, for a modest reduction in the number of stats.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Walk up the tree to mkdir, which is less immediately efficient,
but allows us to look at intermediate directories that may need
attention.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The documentation for `git_path_join_unrooted` states that the base
length will be returned, so that consumers like checkout know where
to start creating directories instead of always creating directories
at the directory root.
|
| | |
| | |
| | |
| | |
| | | |
Checkout can now provide performance data about the number of (some)
syscalls performed using an optional callback.
|
|/ /
| |
| |
| |
| |
| | |
Main change: Don't treat chars > 128 as non-printable (common in UTF-8 files)
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| |
| |
| |
| |
| | |
When we're called with no hunk or line callback, we don't need to
do the hunk or line computation.
|
|/
|
|
| |
Avoid str length recalculation every iteration
|
|\ |
|
| |
| |
| |
| | |
git_merge_tree_flag_t cannot contain any GIT_DIFF_FIND_xxx flags so there's not point in checking for them
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
files
The implementation of the hashsig API disallows computing a signature on
small files containing only a few lines. This new flag disables this
behavior.
git_diff_find_similar() sets this flag by default which means that rename
/ copy detection of small files will now work. This in turn affects the
behavior of the git_status and git_blame APIs which will now detect rename
of small files assuming the right options are passed.
|
|\ \
| | |
| | |
| | | |
Fix crash in free() when git_buf_grow() fails.
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Load prune configuration when a remote is created.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This introduces the functionality of submodule update in
'git_submodule_do_update'. The existing 'git_submodule_update' function is
renamed to 'git_submodule_update_strategy'. The 'git_submodule_update'
function now refers to functionality similar to `git submodule update`,
while `git_submodule_update_strategy` is used to get the configured value
of submodule.<name>.update.
|
| | |/
| |/|
| | |
| | |
| | | |
Submodule init should handle relative paths in .gitmodules files
and resolve these urls when updating the git config file.
|
| |/
|/|
| |
| | |
git_remote_download() must also clear the internal push state resulting from a possible earlier push operation. Otherwise calling git_remote_update_tips() will execute the push version instead of the fetch version and among other things, tags won't be updated.
|
|\ \
| | |
| | | |
Remote-tracking branch prunning
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This option does not get persisted to disk, which makes it different
from the rest of the setters. Remove it until we go all the way.
We still respect the configuration option, and it's still possible to
perform a one-time prune by calling the function.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
For each remote-tracking branch we want to remove, we need to consider
it against every other refspec in case we have overlapping refspecs,
such as with
refs/heads/*:refs/remotes/origin/*
refs/pull/*/head:refs/remotes/origin/pr/*
as we'd otherwise remove too many refspecs.
Create a list of condidates, which are the references matching the rhs
of any active refspec and then filter that list by removing those
entries for which we find a remove reference with any active
refspec. Those which are left after this are removed.
|