Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | color: Implement ln=target | Tavian Barnes | 2019-03-28 | 1 | -18/+57 |
| | | | | | With ln=target in LS_COLORS, links should be colored according to their target's stat() info, not their own. | ||||
* | color: Implement escape sequence parsing | Tavian Barnes | 2019-03-28 | 1 | -196/+396 |
| | | | | | GNU ls allows custom escape sequences inside color values, including control characters and embedded NULs. | ||||
* | trie: Store void* values rather than const void* | Tavian Barnes | 2019-03-27 | 1 | -1/+1 |
| | | | | Fewer casts needed this way. | ||||
* | color: Match the behaviour of GNU ls more closely | Tavian Barnes | 2019-03-17 | 1 | -23/+19 |
| | |||||
* | color: Use a trie to store file extension colors | Tavian Barnes | 2019-03-04 | 1 | -48/+82 |
| | | | | | This new implementation is about 14% faster overall at printing colored files. | ||||
* | Add some documentation comments | Tavian Barnes | 2019-02-09 | 1 | -0/+20 |
| | |||||
* | color.c: Fix an out-of-bounds read if LS_COLORS doesn't end in a colon | Tavian Barnes | 2019-01-11 | 1 | -9/+9 |
| | |||||
* | posix1e: Split out ACL and capability handling from util | Tavian Barnes | 2019-01-02 | 1 | -0/+1 |
| | |||||
* | color: Fix more incompatibilities with GNU ls | Tavian Barnes | 2019-01-02 | 1 | -14/+17 |
| | |||||
* | color: Check format strings + args for cfprintf() | Tavian Barnes | 2019-01-02 | 1 | -82/+105 |
| | | | | | | %{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. | ||||
* | diag: Unify diagnostic formatting | Tavian Barnes | 2019-01-02 | 1 | -23/+22 |
| | | | | | | 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. | ||||
* | color: Don't bail out on colors that exist but are NULL | Tavian Barnes | 2018-12-28 | 1 | -14/+7 |
| | |||||
* | color: Support coloring files with capabilities | Tavian Barnes | 2018-12-17 | 1 | -0/+2 |
| | |||||
* | color: Make extension detection case-insensitive | Tavian Barnes | 2018-12-17 | 1 | -8/+18 |
| | | | | It's what GNU ls does. | ||||
* | color: Don't print the leading directory color if there's no leading directory | Tavian Barnes | 2018-12-17 | 1 | -23/+22 |
| | |||||
* | Update copyright dates | Tavian Barnes | 2018-09-24 | 1 | -1/+1 |
| | |||||
* | stat: New wrapper around the stat() family | Tavian Barnes | 2018-01-08 | 1 | -11/+12 |
| | | | | | This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times. | ||||
* | color: Optimize cfprintf() a bit | Tavian Barnes | 2017-11-13 | 1 | -76/+86 |
| | |||||
* | color: Implement %m for cfprintf() | Tavian Barnes | 2017-11-13 | 1 | -0/+7 |
| | |||||
* | parse: Keep track of what files are already open | Tavian Barnes | 2017-10-21 | 1 | -2/+0 |
| | | | | Fixes #22 | ||||
* | Report errors that occur when closing files | Tavian Barnes | 2017-10-21 | 1 | -0/+2 |
| | | | | Otherwise we miss write errors that occur when flushing the cache. | ||||
* | util: Wrap faccessat() to fix some portability issues | Tavian Barnes | 2017-09-20 | 1 | -1/+1 |
| | |||||
* | Implement cost-based optimization | Tavian Barnes | 2017-08-27 | 1 | -0/+16 |
| | |||||
* | Re-license under the BSD Zero Clause License | Tavian Barnes | 2017-07-27 | 1 | -10/+15 |
| | |||||
* | Add colors to -D tree | Tavian Barnes | 2017-05-15 | 1 | -0/+6 |
| | |||||
* | Pass AT_EACCESS to faccessat() | Tavian Barnes | 2017-04-30 | 1 | -1/+1 |
| | | | | | That's the form that actually answers the expected question ("can I open() this"), and the only form Hurd supports. | ||||
* | Release 1.01.0 | Tavian Barnes | 2017-04-24 | 1 | -1/+1 |
| | |||||
* | Make -help output prettier and more complete | Tavian Barnes | 2017-04-16 | 1 | -13/+53 |
| | |||||
* | Color link targets for -ls | Tavian Barnes | 2017-03-16 | 1 | -0/+33 |
| | | | | Fixes #18. | ||||
* | Give struct expr a CFILE* instead of just a FILE* | Tavian Barnes | 2017-03-16 | 1 | -9/+43 |
| | | | | This unifies the behaviour of -print and -fprint /dev/stdout. | ||||
* | Make a printf()-style API for colored messages | Tavian Barnes | 2017-03-11 | 1 | -144/+158 |
| | |||||
* | Update some copyright dates. | Tavian Barnes | 2016-11-24 | 1 | -1/+1 |
| | |||||
* | Check for errors in -print and friends. | Tavian Barnes | 2016-10-16 | 1 | -22/+57 |
| | |||||
* | bftw: Add support for some exotic file types, where available. | Tavian Barnes | 2016-10-02 | 1 | -0/+6 |
| | |||||
* | color: Ignore colors that are all zeros. | Tavian Barnes | 2016-06-03 | 1 | -1/+6 |
| | | | | | This keeps multi_hard from overriding extension colors if LS_COLORS says mh=00:, matching the behavior of ls. | ||||
* | color: Add multi-hard link coloring support. | Tavian Barnes | 2016-06-02 | 1 | -1/+14 |
| | |||||
* | Fix uninitialized read in parse_colors(). | Tavian Barnes | 2016-02-27 | 1 | -0/+1 |
| | |||||
* | Color broken symlinks correctly. | Tavian Barnes | 2016-02-24 | 1 | -3/+10 |
| | |||||
* | s/color_table/colors/. | Tavian Barnes | 2016-02-14 | 1 | -9/+9 |
| | |||||
* | Refactor color handling. | Tavian Barnes | 2016-02-14 | 1 | -7/+27 |
| | | | | The main benefit is colored warnings/errors during parsing. | ||||
* | Don't modify the result of getenv(). | Tavian Barnes | 2016-02-14 | 1 | -3/+10 |
| | |||||
* | Implement -[ac]?newer. | Tavian Barnes | 2016-02-04 | 1 | -1/+1 |
| | |||||
* | Don't use typedefs to avoid struct/enum tags. | Tavian Barnes | 2016-02-04 | 1 | -15/+13 |
| | |||||
* | bftw() interface improvements: | Tavian Barnes | 2015-09-26 | 1 | -6/+8 |
| | | | | | | - 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 | ||||
* | Implement -delete. | Tavian Barnes | 2015-09-08 | 1 | -2/+2 |
| | | | | Related to #5. | ||||
* | Print the root file/directory too. | Tavian Barnes | 2015-09-02 | 1 | -9/+6 |
| | |||||
* | Recover from errors in diropen(). | Tavian Barnes | 2015-07-25 | 1 | -8/+23 |
| | | | | Fixes #4. | ||||
* | Assorted optimizations. | Tavian Barnes | 2015-06-23 | 1 | -21/+35 |
| | |||||
* | Add support for per-extension colors. | Tavian Barnes | 2015-06-22 | 1 | -2/+33 |
| | |||||
* | Add initial support for colorized output. | Tavian Barnes | 2015-06-20 | 1 | -0/+281 |