Age | Commit message (Collapse) | Author | |
---|---|---|---|
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: Rename bftw_typeflag to bftw_type, and make it not a bitmask | Tavian Barnes | |
2020-06-02 | diag: Unify debug printing | Tavian Barnes | |
2020-03-20 | parse: Prettify some errors and warnings | Tavian Barnes | |
2019-09-04 | color: Actually resolve symlinks against their parent directory | Tavian Barnes | |
2019-09-03 | color: Fix unsigned < 0 comparison | Tavian Barnes | |
2019-09-03 | color: Fix directory coloring when resolving symlinks at the root | Tavian Barnes | |
2019-08-23 | color: Color leading directories as errors if they don't exist | Tavian Barnes | |
Fixes #51. | |||
2019-06-27 | color: Fix a crash if LS_COLORS ends in * | Tavian Barnes | |
2019-06-27 | color: Fix a crash if strndup() fails | Tavian Barnes | |
2019-05-24 | fsade: Refactor the POSIX.1e abstractions | Tavian Barnes | |
Since we're going to want to abstract more things that aren't part of POSIX.1e (like xattrs) in a similar way, let's give this a more generic name. And while we're at it, give it some more precise error reporting, and add some tests. | |||
2019-05-05 | color: Don't stat() if we don't need to | Tavian Barnes | |
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-04-20 | trie: Make trie_remove() take a leaf instead of a key | Tavian Barnes | |
2019-03-28 | color: Implement ln=target | Tavian Barnes | |
With ln=target in LS_COLORS, links should be colored according to their target's stat() info, not their own. | |||
2019-03-28 | color: Implement escape sequence parsing | Tavian Barnes | |
GNU ls allows custom escape sequences inside color values, including control characters and embedded NULs. | |||
2019-03-27 | trie: Store void* values rather than const void* | Tavian Barnes | |
Fewer casts needed this way. | |||
2019-03-17 | color: Match the behaviour of GNU ls more closely | Tavian Barnes | |
2019-03-04 | color: Use a trie to store file extension colors | Tavian Barnes | |
This new implementation is about 14% faster overall at printing colored files. | |||
2019-02-09 | Add some documentation comments | Tavian Barnes | |
2019-01-11 | color.c: Fix an out-of-bounds read if LS_COLORS doesn't end in a colon | Tavian Barnes | |
2019-01-02 | posix1e: Split out ACL and capability handling from util | Tavian Barnes | |
2019-01-02 | color: Fix more incompatibilities with GNU ls | Tavian Barnes | |
2019-01-02 | color: Check format strings + args for cfprintf() | Tavian Barnes | |
%{cc} is now ${cc} to avoid warnings about an unrecognized format specifier, and %P and %L are now %pP and %pL to make them look more like standard format strings. | |||
2019-01-02 | diag: Unify diagnostic formatting | Tavian Barnes | |
This adds a bfs: prefix to error/warning messages for consistency with other command line tools, and leaves only the "error:"/"warning:" part colored like GCC. It also uniformly adds full stops after messages. | |||
2018-12-28 | color: Don't bail out on colors that exist but are NULL | Tavian Barnes | |
2018-12-17 | color: Support coloring files with capabilities | Tavian Barnes | |
2018-12-17 | color: Make extension detection case-insensitive | Tavian Barnes | |
It's what GNU ls does. | |||
2018-12-17 | color: Don't print the leading directory color if there's no leading directory | Tavian Barnes | |
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. | |||
2017-11-13 | color: Optimize cfprintf() a bit | Tavian Barnes | |
2017-11-13 | color: Implement %m for cfprintf() | Tavian Barnes | |
2017-10-21 | parse: Keep track of what files are already open | Tavian Barnes | |
Fixes #22 | |||
2017-10-21 | Report errors that occur when closing files | Tavian Barnes | |
Otherwise we miss write errors that occur when flushing the cache. | |||
2017-09-20 | util: Wrap faccessat() to fix some portability issues | Tavian Barnes | |
2017-08-27 | Implement cost-based optimization | Tavian Barnes | |
2017-07-27 | Re-license under the BSD Zero Clause License | Tavian Barnes | |
2017-05-15 | Add colors to -D tree | Tavian Barnes | |
2017-04-30 | Pass AT_EACCESS to faccessat() | Tavian Barnes | |
That's the form that actually answers the expected question ("can I open() this"), and the only form Hurd supports. | |||
2017-04-24 | Release 1.01.0 | Tavian Barnes | |
2017-04-16 | Make -help output prettier and more complete | Tavian Barnes | |
2017-03-16 | Color link targets for -ls | Tavian Barnes | |
Fixes #18. | |||
2017-03-16 | Give struct expr a CFILE* instead of just a FILE* | Tavian Barnes | |
This unifies the behaviour of -print and -fprint /dev/stdout. | |||
2017-03-11 | Make a printf()-style API for colored messages | Tavian Barnes | |
2016-11-24 | Update some copyright dates. | Tavian Barnes | |
2016-10-16 | Check for errors in -print and friends. | Tavian Barnes | |