| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This has not been a supported build mode for quite some time, and it
correspondingly hasn't worked to build the library for a long time. Get
rid of it, as the only build mode we support is though CMakek.
|
|\
| |
| | |
iterator/diff: allow trailing `/` on start/end paths to match submodules
|
| |
| |
| |
| |
| |
| | |
Allow callers to specify a start path with a trailing slash to match
a submodule, instead of just a directory. This is for some legacy
behavior that's sort of dumb, but there it is.
|
| |
| |
| |
| |
| | |
Test that submodules are found when the are included in a pathspec
but have a trailing slash.
|
|\ \
| |/
|/| |
ignore: don't use realpath to canonicalize path
|
|/
|
|
|
|
| |
If we're looking for a symlink, realpath will give us the resolved path,
which is not what we're after, but a canonicalized version of the path
the user asked for.
|
|\
| |
| | |
merge_driver: fix missing `goto done;`
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The code initializing the merge driver registry accidentally
forgot a `goto done` in case of an error. Because of this the
next line, which registers the global shutdown callback for the
merge drivers, is only called when an error occured.
Fix this by adding the missing `goto done`. This fixes some
memory leaks when the global state is shut down.
|
|\ \
| |/
|/| |
WD iterator: properly identify submodules
|
| | |
|
| | |
|
|\ \
| |/
|/| |
Plug some leaks
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
Add a no-op size_t typedef for the doc parser
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Clang's documentation parser, which we use in our documentation system
does not report any comments for functions which use size_t as a type.
The root cause is buried somewhere in libclang but we can work around it
by defining the type ourselves. This typedef makes sure that libclang
sees it and that we do not change its size.
|
|\ \
| | |
| | | |
Remove duplicated calls to git_mwindow_close
|
| | | |
|
|\ \ \
| |_|/
|/| | |
xprepare memleaks
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The xdl_prepare_env() function may initialise an xdlclassifier_t
data structure via xdl_init_classifier(), which allocates memory
to several fields, for example 'rchash', 'rcrecs' and 'ncha'.
If this function later exits due to the failure of xdl_optimize_ctxs(),
then this xdlclassifier_t structure, and the memory allocated to it,
is not cleaned up.
In order to fix the memory leak, insert a call to xdl_free_classifier()
before returning.
This patch was originally written by Ramsay Jones (see commit
87f16258367a3b9a62663b11f898a4a6f3c19d31 in git.git).
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Commit 307ab20b3 ("xdiff: PATIENCE/HISTOGRAM are not independent option
bits", 19-02-2012) introduced the XDF_DIFF_ALG() macro to access the
flag bits used to represent the diff algorithm requested. In addition,
code which had used explicit manipulation of the flag bits was changed
to use the macros.
However, one example of direct manipulation remains. Update this code to
use the XDF_DIFF_ALG() macro.
This patch was originally written by Ramsay Jones (see commit
5cd6978a9cfef58de061a9525f3678ade479564d in git.git).
|
|\ \
| | |
| | | |
config: don't write duplicate section
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
If we hit the EOF while trying to write a new value, it may be that
we're already in the section that we were looking for. If so, do not
write a (duplicate) section header, just write the value.
|
| | |
| | |
| | |
| | |
| | | |
We should notice that we are in the correct section to add. This is a
cosmetic bug, since replacing any of these settings does work.
|
|\ \ \
| |/ /
|/| | |
config: don't special-case multivars that don't exist yet
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This special-casing ignores that we might have a locked file, so the
hashtable does not represent the contents of the file we want to
write. This causes multivar writes to overwrite entries instead of add
to them when under lock.
There is no need for this as the normal code-path will write to the file
just fine, so simply get rid of it.
|
|\ \ \
| | | |
| | | | |
CMakeLists: Further improve the error messages regarding CMAKE_SIZEOF_VOID_P
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Some FANTASTIC iterator refactoring
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Remove some unused functions, refactor some ugliness.
|
| | | | |
| | | | |
| | | | |
| | | | | |
(It's slow!)
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since the three iterators implement `advance_over` differently,
mandate it and implement each.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Iterator tests were split over repo::iterator and diff::iterator,
with duplication between the two. Move them to iterator::index,
iterator::tree, and iterator::workdir.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When a directory is removed out from underneath us, stop trying to
manipulate it.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Now that iterators do not return `GIT_ENOTFOUND` when advancing
into an empty directory, we do not need a special `advance_into_or_over`
function.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Prior iterator implementations returned `GIT_ENOTFOUND` when
trying to advance into empty directories. Ensure that we no longer
do that and simply handle them gracefully.
|
| | | | | |
|