summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix -maxdepth handling when -depth is set.Tavian Barnes2015-09-152-3/+15
| | | | Lost some data due to this bug :(.
* Add a basic test suite.Tavian Barnes2015-09-152-1/+64
|
* Implement -delete.Tavian Barnes2015-09-083-6/+29
| | | | Related to #5.
* Perform some boolean simplification on the expression tree.Tavian Barnes2015-09-081-52/+133
| | | | And plug some leaks while I'm at it.
* Add -depth support.Tavian Barnes2015-09-083-41/+191
| | | | | | | The resulting order is fairly weird, as files are still returned in breadth-first order, but directories are returned in a backwards order based on when their reference counts drop to zero. But it's good enough for -delete support.
* Factor some code out of bftw().Tavian Barnes2015-09-061-77/+172
|
* Print the root file/directory too.Tavian Barnes2015-09-025-100/+142
|
* Add -print0 support.Tavian Barnes2015-09-011-10/+43
|
* Add -mindepth and -maxdepth support.Tavian Barnes2015-08-311-3/+62
|
* Fix parsing around ")".Tavian Barnes2015-08-311-1/+3
|
* Fix -o/-or and comma operator.Tavian Barnes2015-08-311-0/+4
|
* Add -name support.Tavian Barnes2015-08-311-22/+97
|
* Free the colors.Tavian Barnes2015-08-311-0/+1
|
* bftw: Store the paths with a trailing slash.Tavian Barnes2015-08-311-32/+37
|
* bftw: Fix path size of /.Tavian Barnes2015-08-311-2/+6
|
* Don't forget to initialize cl->expr.Tavian Barnes2015-08-311-0/+1
|
* Simplify evaluation function signatures.Tavian Barnes2015-08-311-36/+48
|
* Add support for -true and -false.Tavian Barnes2015-08-301-11/+22
|
* Fix -nohidden return value.Tavian Barnes2015-08-301-2/+6
|
* Add -type support.Tavian Barnes2015-08-303-16/+103
| | | | Fixes #2.
* Parse command line expressions properly.Tavian Barnes2015-08-301-61/+492
|
* Infer the right value for nopenfd, and recover from EMFILE.Tavian Barnes2015-07-272-3/+34
|
* Recover from errors in diropen().Tavian Barnes2015-07-255-90/+183
| | | | Fixes #4.
* Disable asserts in release build.Tavian Barnes2015-07-231-1/+1
|
* bftw: New struct BFTW type to hold file attributes.Tavian Barnes2015-07-233-31/+47
| | | | | Like nftw()'s struct FTW. level is needed to implement -mindepth/ -maxdepth.
* Makefile: Add a 'release' target.Tavian Barnes2015-07-191-1/+4
|
* Makefile: Don't pass -Og, which doesn't exist in clang.Tavian Barnes2015-07-191-3/+3
| | | | Fixes #1.
* bftw: Assume struct dirent::d_type exists if DT_* are defined.Tavian Barnes2015-07-191-1/+1
| | | | | | | Only glibc defines _DIRENT_HAVE_D_TYPE, but other C libraries have d_type too. This should fix #3.
* Assorted optimizations.Tavian Barnes2015-06-232-39/+60
|
* Add support for per-extension colors.Tavian Barnes2015-06-221-2/+33
|
* bftw: Don't add extra slashes.Tavian Barnes2015-06-211-4/+20
| | | | This fixes "bfs /" among other things.
* Add initial support for colorized output.Tavian Barnes2015-06-204-16/+364
|
* Ignore .d files.Tavian Barnes2015-06-191-0/+1
|
* Makefile: Auto-generate dependencies.Tavian Barnes2015-06-181-6/+14
|
* bftw: Add flags parameter and BFTW_STAT flag.Tavian Barnes2015-06-183-8/+21
|
* Add -hidden/-nohidden flags.Tavian Barnes2015-06-181-4/+43
|
* Makefile: Listen to the environment.Tavian Barnes2015-06-141-4/+4
|
* Implement bftw().Tavian Barnes2015-06-146-0/+630