Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-02-05 | Fix up some #includes | Tavian Barnes | |
2021-02-05 | Update copyright dates | Tavian Barnes | |
2021-01-28 | dir: New DIR* facade | Tavian Barnes | |
2020-11-12 | Include what I use | Tavian Barnes | |
Thanks to https://github.com/include-what-you-use/include-what-you-use | |||
2020-09-18 | stat: Rename bfs_stat_flag to _flags | Tavian Barnes | |
Flags enums should be plural. | |||
2020-09-18 | Don't call stat() just to determine symbolic lengths | Tavian Barnes | |
The new bftw_cached_stat() helper gets us stat info if we already have it, but doesn't call stat() if we don't. In that case we just take a guess for the initial length to readlinkat(). This lets us avoid stat() entirely in many cases for -lname and -printf %l. | |||
2020-07-29 | bftw: Make some flag names more explicit | Tavian Barnes | |
2020-07-29 | bftw: Rename bftw_typeflag to bftw_type, and make it not a bitmask | Tavian Barnes | |
2020-06-16 | Implement exponential deepening search | Tavian Barnes | |
2020-03-21 | Implement -s flag from FreeBSD find to sort results | Tavian Barnes | |
2019-07-04 | Make -mount and -xdev do different things | Tavian Barnes | |
POSIX now says -mount should skip the whole mount point, while -xdev should only skip its descendents. C.f. http://austingroupbugs.net/view.php?id=1133 C.f. https://savannah.gnu.org/bugs/?42318 C.f. https://savannah.gnu.org/bugs/?54745 | |||
2019-06-25 | bftw: Remove BFTW_SKIP_SIBLINGS | Tavian Barnes | |
It's not used by bfs, and it's difficult to support in all search strategies. | |||
2019-06-25 | bftw.h: Add missing #include for mode_t | Tavian Barnes | |
2019-05-29 | Implement an iterative deepening mode (-ids) | Tavian Barnes | |
2019-05-28 | Implement a depth-first mode (-dfs) | Tavian Barnes | |
2019-05-28 | bftw: Visit multiple roots breadth-first | Tavian Barnes | |
This makes `bfs a b` treat `a` and `b` as siblings. | |||
2019-05-05 | bftw: Pass a const struct BFTW * to the callback | Tavian Barnes | |
2019-05-04 | bftw: Add a caching stat() API to struct BFTW | Tavian Barnes | |
2019-05-04 | stat: Unify the flags arguments | Tavian Barnes | |
2019-03-06 | bftw: Work around d_type being wrong for bind mounts on Linux | Tavian Barnes | |
C.f. https://savannah.gnu.org/bugs/?54913 C.f. https://lkml.org/lkml/2019/2/11/2027 Fixes https://github.com/tavianator/bfs/issues/37 | |||
2019-03-06 | bftw: Switch from taking separate parameters to a parameters struct | Tavian Barnes | |
2019-02-09 | Add some documentation comments | Tavian Barnes | |
2018-12-17 | bftw: Move bftw_typeflag conversion out of util | Tavian Barnes | |
Turns out incomplete enum types are a GNU C extension. | |||
2018-09-24 | Update copyright dates | Tavian Barnes | |
2018-01-08 | stat: New wrapper around the stat() family | Tavian Barnes | |
This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times. | |||
2018-01-08 | Minor header cleanups | Tavian Barnes | |
2017-07-27 | Re-license under the BSD Zero Clause License | Tavian Barnes | |
2017-04-24 | Release 1.01.0 | Tavian Barnes | |
2017-04-08 | Move bftw_typeflag converters to util.c | Tavian Barnes | |
2017-02-08 | Add support for -x?type with multiple types | Tavian Barnes | |
This functionality is already part of GNU findutils git. | |||
2017-02-05 | Implement -printf/-fprintf | Tavian Barnes | |
Based on a patch by Fangrui Song <i@maskray.me>. Closes #16. | |||
2016-11-24 | Update some copyright dates. | Tavian Barnes | |
2016-11-21 | bftw: Make bftw_flags more similar to fts() options. | Tavian Barnes | |
2016-10-02 | bftw: Add support for some exotic file types, where available. | Tavian Barnes | |
2016-02-14 | Implement -mount/-xdev. | Tavian Barnes | |
2016-02-13 | Follow links if appropriate in predicates. | Tavian Barnes | |
2016-02-09 | Implement -L/-follow. | Tavian Barnes | |
2016-02-04 | Implement -P and -H. | Tavian Barnes | |
2016-02-04 | Don't use typedefs to avoid struct/enum tags. | Tavian Barnes | |
2015-09-26 | Optimize -maxdepth in -depth mode. | Tavian Barnes | |
2015-09-26 | Don't call stat() until absolutely necessary. | Tavian Barnes | |
This way we only call stat() if we're actually pretty-printing the path, potentially saving lots of calls on paths that don't get printed. | |||
2015-09-26 | bftw() interface improvements: | Tavian Barnes | |
- Use enums instead of ints where it makes sense - Move the file path inside struct BFTW - Expose a fd and relative path for *at() calls | |||
2015-09-08 | Add -depth support. | Tavian Barnes | |
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. | |||
2015-09-02 | Print the root file/directory too. | Tavian Barnes | |
2015-08-30 | Add -type support. | Tavian Barnes | |
Fixes #2. | |||
2015-07-25 | Recover from errors in diropen(). | Tavian Barnes | |
Fixes #4. | |||
2015-07-23 | bftw: New struct BFTW type to hold file attributes. | Tavian Barnes | |
Like nftw()'s struct FTW. level is needed to implement -mindepth/ -maxdepth. | |||
2015-06-18 | bftw: Add flags parameter and BFTW_STAT flag. | Tavian Barnes | |
2015-06-14 | Implement bftw(). | Tavian Barnes | |