summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove Makefile.embedcmn/no-embedCarlos Martín Nieto2016-04-051-60/+0
| | | | | | 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.
* Merge pull request #3724 from ethomson/submodule_start_supports_silly_slashesCarlos Martín Nieto2016-04-023-16/+85
|\ | | | | iterator/diff: allow trailing `/` on start/end paths to match submodules
| * iterator: support trailing `/` in start for submodEdward Thomson2016-04-022-16/+38
| | | | | | | | | | | | 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.
| * diff: test submodules are found with trailing `/`Edward Thomson2016-04-021-0/+47
| | | | | | | | | | Test that submodules are found when the are included in a pathspec but have a trailing slash.
* | Merge pull request #3723 from libgit2/cmn/ignore-symlinkEdward Thomson2016-04-022-3/+24
|\ \ | |/ |/| ignore: don't use realpath to canonicalize path
| * ignore: don't use realpath to canonicalize pathcmn/ignore-symlinkCarlos Martín Nieto2016-04-022-3/+24
|/ | | | | | 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 pull request #3720 from pks-t/pks/merge-driver-memleaksCarlos Martín Nieto2016-04-011-0/+1
|\ | | | | merge_driver: fix missing `goto done;`
| * merge_driver: fix missing `goto done;`Patrick Steinhardt2016-04-011-0/+1
| | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #3719 from libgit2/ethomson/submodule_statusCarlos Martín Nieto2016-04-01231-1/+423
|\ \ | |/ |/| WD iterator: properly identify submodules
| * iterator: use correct search functionethomson/submodule_statusEdward Thomson2016-03-311-1/+1
| |
| * status: test submodules with mixed caseEdward Thomson2016-03-31230-0/+422
| |
* | Merge pull request #3717 from libgit2/ethomson/leaksCarlos Martín Nieto2016-03-319-9/+60
|\ \ | |/ |/| Plug some leaks
| * leaks: call `xdl_free_classifier`Edward Thomson2016-03-311-1/+1
| |
| * leaks: fix some leaks in the testsEdward Thomson2016-03-315-2/+19
| |
| * leaks: fix some iterator leaksEdward Thomson2016-03-311-6/+22
| |
| * Plug a few leaksCarlos Martín Nieto2016-03-313-0/+18
|/
* Merge pull request #3716 from libgit2/cmn/typedef-sizetEdward Thomson2016-03-311-0/+8
|\ | | | | Add a no-op size_t typedef for the doc parser
| * Add a no-op size_t typedef for the doc parsercmn/typedef-sizetCarlos Martín Nieto2016-03-311-0/+8
| | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #3575 from pmq20/master-13jan16Carlos Martín Nieto2016-03-312-4/+0
|\ \ | | | | | | Remove duplicated calls to git_mwindow_close
| * | Remove duplicated calls to git_mwindow_closeP.S.V.R2016-01-132-4/+0
| | |
* | | Merge pull request #3715 from pks-t/pks/xprepare-memleakCarlos Martín Nieto2016-03-311-1/+2
|\ \ \ | |_|/ |/| | xprepare memleaks
| * | xdiff/xprepare: fix a memory leakPatrick Steinhardt2016-03-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| * | xdiff/xprepare: use the XDF_DIFF_ALG() macro to access flag bitsPatrick Steinhardt2016-03-311-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | Merge pull request #3712 from ethomson/config_duplicate_sectionCarlos Martín Nieto2016-03-292-4/+33
|\ \ | | | | | | config: don't write duplicate section
| * | config::write::repeated: init our bufferEdward Thomson2016-03-281-1/+1
| | |
| * | config: don't write section header if we're in itEdward Thomson2016-03-281-4/+9
| | | | | | | | | | | | | | | | | | 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.
| * | config: show we write a spurious duplicated section headerCarlos Martín Nieto2016-03-281-0/+24
| | | | | | | | | | | | | | | 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.
* | | Merge pull request #3703 from libgit2/cmn/multivar-set-lockedEdward Thomson2016-03-282-18/+1
|\ \ \ | |/ / |/| | config: don't special-case multivars that don't exist yet
| * | config: don't special-case multivars that don't exist yetcmn/multivar-set-lockedCarlos Martín Nieto2016-03-212-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #3708 from sschuberth/masterEdward Thomson2016-03-281-1/+3
|\ \ \ | | | | | | | | CMakeLists: Further improve the error messages regarding CMAKE_SIZEOF_VOID_P
| * | | CMakeLists: Further improve the error messages regarding CMAKE_SIZEOF_VOID_PSebastian Schuberth2016-03-241-1/+3
| | | |
* | | | Merge pull request #3691 from ethomson/iteratorsCarlos Martín Nieto2016-03-2624-4162/+6103
|\ \ \ \ | | | | | | | | | | Some FANTASTIC iterator refactoring
| * | | | iterator: comment fixedMarc Strapetz2016-03-241-2/+2
| | | | |
| * | | | iterator: unused includes removedMarc Strapetz2016-03-241-4/+0
| | | | |
| * | | | iterator: new workdir-iterator test for pathlist + includings treesMarc Strapetz2016-03-241-0/+26
| | | | |
| * | | | iterator: new index-iterator test for pathlist + includings treesMarc Strapetz2016-03-241-0/+31
| | | | |
| * | | | iterator: more pathlist-related tests should test actual pathsMarc Strapetz2016-03-242-6/+23
| | | | |
| * | | | iterator: cleanupsEdward Thomson2016-03-243-366/+54
| | | | | | | | | | | | | | | | | | | | Remove some unused functions, refactor some ugliness.
| * | | | iterator: don't run the gunk test by default on CIEdward Thomson2016-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | (It's slow!)
| * | | | iterator: refactor empty iterator to new styleEdward Thomson2016-03-241-15/+36
| | | | |
| * | | | iterator: mandate `advance_over`Edward Thomson2016-03-242-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Since the three iterators implement `advance_over` differently, mandate it and implement each.
| * | | | iterator: refactor index iteratorEdward Thomson2016-03-245-258/+882
| | | | |
| * | | | Introduce `git_path_common_dirlen`Edward Thomson2016-03-243-0/+46
| | | | |
| * | | | iterator: move the index into the iterator itselfEdward Thomson2016-03-242-36/+15
| | | | |
| * | | | iterator: give the tests a proper hierarchyEdward Thomson2016-03-247-3332/+3375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Added clar test for #3568Jeff Hostetler2016-03-231-0/+129
| | | | |
| * | | | diff: stop processing nitem when its removedEdward Thomson2016-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When a directory is removed out from underneath us, stop trying to manipulate it.
| * | | | iterator: drop `advance_into_or_over`Edward Thomson2016-03-232-20/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | iterator: test that we can `advance_into` empty dirsEdward Thomson2016-03-231-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Failing test.joshaber2016-03-231-10/+53
| | | | |