1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-12-01 01:45:42 +00:00
Commit graph

464 commits

Author SHA1 Message Date
2a2e9e501a Forgot to remove the time from the date 2016-04-22 20:49:51 +02:00
a6b1feb958 Enable testing on drone.io 2016-04-22 01:36:17 +02:00
343c44add5 Add an option to compile the build date into dindexer's binary 2016-04-22 01:35:57 +02:00
cb9b1c3bee Update readme 2016-04-22 00:41:32 +02:00
12d39b203e Add unit tests to cmake 2016-04-21 00:25:52 +02:00
abde34e240 Add unit test for cli programs 2016-04-21 00:22:00 +02:00
e3e704c50f Bugfixes and improvements 2016-04-21 00:20:00 +02:00
653371763b Treat commands as utf8 when looking for possible mispellings 2016-04-21 00:18:20 +02:00
eaba94fa13 Don't cast malloc.
There is no need to cast the result of library functions that return void *;
it makes your code hard to read, adds no value, and can hide a bug if you don't
have a valid prototype in scope.
See http://c-faq.com/malloc/mallocnocast.html
2016-04-19 11:20:04 +02:00
c26cdb97f5 Print compiler id and version in builtin info 2016-04-19 01:04:57 +02:00
e6bfd0ecfd Merge remote-tracking branch 'gitan/master' 2016-04-19 00:37:57 +02:00
50e3f6f0ed Don't build tests from lib pbl 2016-04-19 00:34:02 +02:00
31142a49b3 Implement mispelling suggestions for argument to dindexer 2016-04-19 00:09:38 +02:00
3e130cd346 Import pbl c library 2016-04-18 22:52:35 +02:00
7515705c05 Try to use linereader autocomplete 2016-04-15 15:07:22 +02:00
69590a0267 Improve compiler version detection in cmake 2016-04-14 20:47:16 +02:00
3a2db550d2 Warning fix on clang 2016-03-18 22:28:58 +01:00
a27b1ccec8 Buildfix on ARM 64 2016-03-18 22:09:55 +01:00
aee6c35ede Gather more build env info and show them when doing -b 2016-03-17 09:50:52 +01:00
a75eee1325 Add DINDEXER_NATIVE_RELEASE cmake option.
Allows to pass -march=native to dindxer projects and to libpqtypes.
CMake min version raised to 3.3 since externalproject_add didn't
support generator expressions prior to that version.
2016-03-17 09:11:13 +01:00
ed30de44cf Add --version switch to main program. 2016-03-16 18:49:49 +01:00
417459b806 Bugfix and improve behaviour
The program now tries to be more strict about the command lines it
accepts. See the comment added into main.c for more details.
Also fixed a bug introduced by a previous commit, and another one
about argv not being null-terminated. For some reasons it never
gave problems until now. But it's fixed now, so yeah.
2016-03-16 18:39:18 +01:00
6991fee7f7 Add support for bash autocomplete in main dindexer
I'm not sure this is something that should be in the code, since
compgen -W "delete locate navigate query scan" loc
would do just the same as
dindexer --printactions=loc
so this is a duplicated functionality. However this commit is
self-contained, so it should be easy to revert it, if needed.
2016-03-16 00:01:29 +01:00
c6b0fe49b5 Use getopt_long() to parse command line. 2016-03-15 21:10:52 +01:00
96c6e967a0 Cache result of ls command. 2016-03-15 09:33:12 +01:00
d21a4fa374 Use readline
Maybe this should be made optional?
2016-03-15 08:42:01 +01:00
0f7a78b395 Fix paths with spaces not being treated correctly. 2016-03-14 19:39:58 +01:00
8fc45ce694 Buildfix on ARM 2016-03-12 00:47:08 +01:00
859764b9a4 Merge branch 'hashdir_refactoring' 2016-03-12 00:37:28 +01:00
e95cd6cc44 Add a --byhash switch to the locate command to search by content.
This is mostly to demonstrate the new task classes.
2016-03-12 00:32:15 +01:00
34ead94c8d Restore DB writing functionality.
This ends the scantask refactoring. It is now possible to scan
directories using the new system. Progress feedback is made
available again, although it could use some improvements.
2016-03-10 18:37:42 +01:00
43c8024b0c Re-add some progress feedback.
It's not multithreaded this time o.O
2016-03-10 09:51:27 +01:00
c28398a1b3 Assert if get_or_create() causes other calls to itself.
This is to try and prevent infinite recursions.
2016-03-09 21:35:22 +01:00
fe7e9c4af9 Turn around Set's tasks so that they provide a SetRecordDataFull. 2016-03-09 21:26:43 +01:00
be1f47a5fd Fix build script for drone.io, which started acting up suddenly 2016-03-09 21:23:53 +01:00
dfa5040667 Add link to diaspora* to readme 2016-03-09 21:21:06 +01:00
fd5be6216a Namespace shortcut 2016-03-09 19:11:45 +01:00
c4c68e3b5c Take file size in filesearcher.
Like this the filesize task I was about to write becomes
unnecessary.
2016-03-09 18:55:03 +01:00
85cbc76de4 Add GeneralFiller helper task to group tasks together. 2016-03-09 09:25:52 +01:00
5798e0d315 New Mime task. 2016-03-09 09:02:17 +01:00
217eac250b Include only needed headers 2016-03-08 22:56:23 +01:00
c068f93bac New ContentType task.
Fix the problems I encountered while trying to use the new task.
2016-03-08 19:54:04 +01:00
b357bfb2cc Use basename() instead of the unclear make_rel_path 2016-03-08 19:09:56 +01:00
250b2df846 Add basename() free function. 2016-03-08 19:09:20 +01:00
63c703f20d Fix wrong hashes for directories
set_listing must sort by abs_path, because the path received by
lower_bound() is an absolute path.
Inside hash_dir() the path passed to append_to_vec() is really
the basename of the current item. This will become more clear
in one of the next commits.
2016-03-08 18:58:47 +01:00
7b0189a119 Make debug output a bit nicer. 2016-03-08 08:51:57 +01:00
d2588d3c7e Implement hashing task.
Also get rid of the ShorFileRecordData and put the new LeanBase
class to use.
2016-03-08 08:48:12 +01:00
c64e572fc8 Split Base into LeanBase and Base.
Build not tested - intermediate commit.
2016-03-08 08:45:56 +01:00
d579b311f2 Add ShortFileRecordData struct to hold the file list in DirTree. 2016-03-04 21:57:09 +01:00
1956594c01 Move mediatypes.hpp/cpp to machinery.
This was needed so that machinery wouldn't depend on common.
Also moved compatibility.h to helpers include dir.
Ideally mediatypes.hpp will be merged into mediatype.hpp, or there
will be some kind of renaming because the two names are
getting really confusing.
2016-03-04 09:01:11 +01:00