about summary refs log tree commit diff stats
path: root/rf.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory leak when not specifying any patternsRory Bradford2021-04-111-5/+9
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Remove memsetRory Bradford2021-04-111-2/+0
| | | | | | This isn't required as we're already doing a calloc. Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Make strings saferRory Bradford2021-03-061-10/+29
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Add config parserRory Bradford2020-08-131-19/+117
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Fix double slashesRory Bradford2020-08-111-1/+5
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Add change root directory optionRory Bradford2020-08-111-2/+7
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Make calloc types explicitRory Bradford2020-08-101-1/+1
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Fix loop break out logicRory Bradford2020-08-081-3/+2
| | | | | | Also changes _XOPEN_SOURCE to 700 to fix includes. Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Additional safetyRory Bradford2020-08-021-21/+30
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Various minor improvementsRory Bradford2020-08-021-23/+15
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Add wholename optionRory Bradford2020-04-181-109/+96
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Initialise struct with defaultsRory Bradford2020-04-181-30/+17
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Re-introduce optional substring matchingRory Bradford2020-04-171-25/+28
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Add unlink and shell options, refactor optsRory Bradford2020-04-141-100/+95
| | | | | | Make opts more BSD-like, simpler. Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Fix invert exclusionRory Bradford2020-04-141-0/+1
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Tidy up help textRory Bradford2020-04-141-6/+5
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Fix invert logicRory Bradford2020-04-141-11/+7
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* RefactorRory Bradford2020-04-101-88/+26
| | | | | | | | | | | Implement `fnmatch` file name matching. Define clang formatting, previously used defaults without a config file; apply formatting. Make `install` more cross-platform. Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* More code reformattingRory Bradford2020-04-091-295/+310
| | | | | | Add editorconfig. Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Add missing dirname short optRory Bradford2020-03-251-1/+5
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Add dirname optionRory Bradford2020-02-221-9/+19
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Reformat with default clang styleRory Bradford2020-02-221-314/+275
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Fix uninitialised variablesRory Bradford2019-12-221-5/+18
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Fix memory leak when using --limitRory Bradford2019-12-041-8/+25
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Improve code formattingRory Bradford2019-12-011-248/+289
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Fix argument syntax in docsRory Bradford2019-12-011-1/+1
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Make POSIX compatibleRory Bradford2019-11-291-1/+5
| | | | | | Use MAXPATHLEN instead of PATH_MAX. Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Implement limitRory Bradford2019-11-251-8/+28
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Implement invert switchRory Bradford2019-11-191-7/+20
| | | | Signed-off-by: Rory Bradford <roryrjb@gmail.com>
* Initial implementationRory Bradford2019-11-151-0/+261
Signed-off-by: Rory Bradford <roryrjb@gmail.com>