929c5b8adf
Add a unit test for PathName and fix the errors I found.
...
The pool was storing strings and references to it. References
became invalid as strings got moved around, as a consequence of
push_back() in the owner container. I'm storing references in
a custom StrRange struct now, and string refs are built on the
fly when one is needed.
2017-08-18 00:24:54 +01:00
93fe091303
Put the generic split() in its own file.
2017-08-18 00:24:54 +01:00
527f8cedea
Add a generic split() function.
2017-08-18 00:24:54 +01:00
40f98fb382
Fix indentation and use sock for redis connections.
2017-08-18 00:24:54 +01:00
9987d2b97e
Remove unused variables
2017-08-18 00:24:54 +01:00
6c2431a3d0
Add swap() method.
2017-08-18 00:24:54 +01:00
59eff8ff56
Allow sock connections to redis.
2017-08-18 00:24:54 +01:00
106b72bf0e
Skip mime errors if user passed --ignore-errors.
2017-08-12 21:33:57 +01:00
2318bc01ee
Fix assert due to necrophily.
2017-08-12 21:25:27 +01:00
23098c9fe0
Use a compiler-independent way to say -fPIC
2017-03-19 21:45:13 +00:00
9d24a108d8
Hide the cmake warning from gtest.
...
Really gtest, sort it out already!
2016-08-10 01:48:27 +02:00
08a6c0d73d
Detect compiler to use.
...
For example if you run the script from dindexer/clang_debug
you will tell cmake to make a debug build using clang.
You can also use gcc_debug but there is no way to specify
a particular version.
2016-08-02 02:11:05 +02:00
a10982533e
Add helper scripts for wrapping cmake invocation
...
export_compile_commands assumes you have your working copy in
$HOME/dev/code/dindexer and you are running it from your build
directory, which is in something like
$HOME/dev/build/dindexer/<config>
It will then invoke cmake with CMAKE_EXPORT_COMPILE_COMMANDS ON
for YouCompleteMe to work. The exported .json file is
automatically symlinked into your working copy. Any previous
symlink or file is deleted from your working copy first, so if
you run this script for Release and then for Debug, the appropriate
symlink to Debug will be in your working tree.
cmake_default simply wraps export_compile_commands passing
default cmake values I normally like to use.
2016-08-02 01:21:34 +02:00
ec8e451481
Add YouCompleteMe files to gitignore
2016-08-02 00:10:35 +02:00
2e5bb32439
Improve flat_git script.
...
It now has a clone subcommand that does the same thing as before,
and a status subcommand that tells the user what submodules
are flattened.
2016-07-27 23:46:11 +02:00
b520b2f3d4
Try to fix error during make install.
2016-07-15 20:14:40 +01:00
f28ff13492
travis is not getting the -fPIC right for pq it seems.
...
Also make top-level cmake file default to Release if
no build type is given.
2016-07-15 20:02:42 +01:00
06abcab627
Fix install command for hiredis in travis script
2016-07-15 19:39:20 +01:00
32ca308982
Compile hiredis manually because the one from travis dates back to 2011
2016-07-15 19:26:42 +01:00
3cf0f95343
Add libev to travis config
2016-07-15 19:11:30 +01:00
e6ea0abe38
Update incredis, see if it fixes the build on travis
2016-07-15 19:05:01 +01:00
1b80d85d7e
Fix travis config
2016-07-15 18:51:50 +01:00
53540e40d8
Fix incredis.hpp not found error.
2016-07-15 18:47:57 +01:00
ccf13d7dfe
Buildfix when DINDEXER_WITH_MEDIA_AUTODETECT=off
2016-07-15 17:45:48 +01:00
ac79665c9e
Need travis to build boost-regex too...
2016-07-15 17:24:12 +01:00
b84c31fb15
Buildfix on travis.
...
Don't include incredis when not needed, or cmake will look for hiredis.
Install hiredis and enable redis backend explicitly.
2016-07-15 17:12:40 +01:00
2467f2f12d
Fix a bug with the script not detecting non-empty
...
directories properly. It was looking for a relative path,
but the base path would change across invocations of clone_submodules().
2016-07-15 16:55:06 +01:00
29c71c9222
Merge
2016-07-15 15:51:42 +01:00
062b927d39
Add unlicense license to flat_git.
2016-07-15 15:47:21 +01:00
7804fbccbc
Import flat_git tool
2016-07-15 15:23:38 +01:00
45ff635ee1
Update list of submodules to be ignored by flat_git
2016-07-15 15:17:55 +01:00
b021c36080
Update submodules
2016-07-15 15:11:45 +01:00
29c6e084b3
Update submodules
2016-07-15 15:00:54 +01:00
5ddd8d9408
Update submodules
2016-07-15 14:55:33 +01:00
e5814a5575
Buildfix in redis backend
2016-07-14 18:13:30 +01:00
f96fa212d6
Remove Sprout - it's not used by this project anymore.
...
duckhandy still uses it, and it pulls it in by itself.
2016-07-14 18:04:25 +01:00
6478b45dbf
Updated submodules
2016-07-14 17:31:56 +01:00
2f6c4f3dab
Remove incredis and import it as a submodule.
2016-07-14 17:30:45 +01:00
7a3438def6
Fix namespaces.
...
Build works, except for incredis which I'm going to move out anyways.
2016-07-14 16:02:15 +01:00
a5477c99cf
Import duckhandy as a submodule and fix includes.
2016-07-14 15:52:03 +01:00
aeb8dee561
Fix detection of strings starting by ../
2016-07-14 15:36:29 +01:00
a5d9d6b716
Remove helpers from this repo.
...
They have been pulled out into a separate git repository.
Adding that as a submodule in an upcoming commit.
2016-07-14 15:27:11 +01:00
3edb83dce3
Add new shared_git_project module for cmake.
2016-07-14 14:05:19 +01:00
dc814b4d09
Move flatinsertin2dlist to postgresql backend.
...
It's the only place using that header and its use is so
specialized I struggle to even remember what it does.
2016-07-14 11:24:41 +01:00
0b10316d9e
Use lexical_cast from dinhelp, not boost.
2016-07-14 11:02:06 +01:00
4e41ea1864
Move hiredis wrapper into a separate .so
...
...but the new cmake file has some ugly hacks. Trying to work on
the problems...
2016-07-13 15:13:59 +01:00
43e53c3740
Move pending futures count's ownership to Command.
...
This is to make the count global across batches created from
the same Command.
2016-07-13 14:28:32 +01:00
960f10c370
Silence verbose feedback from commands sent to Redis.
2016-07-13 12:19:52 +01:00
853fb13495
Implement find_paths_starting_by().
2016-07-13 12:19:27 +01:00
12c062b939
Prevent values being stolen accidentally and provide proper overloads.
2016-07-13 12:17:54 +01:00