Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | print_shquoted: respect Qflag | Leah Neukirchen | 2018-04-17 | 1 | -1/+1 |
| | |||||
* | bump copyright message | Leah Neukirchen | 2018-04-05 | 1 | -1/+1 |
| | |||||
* | support $NO_COLOR | Leah Neukirchen | 2018-01-29 | 1 | -0/+2 |
| | | | | http://no-color.org/ | ||||
* | print file size in groups of three digits when -G is used | Leah Neukirchen | 2017-11-24 | 1 | -2/+23 |
| | | | | | We use a custom printing function as %'jd is locale-dependent (and not implemented in musl). | ||||
* | add -P for $'...' escaping, verify UTF-8 filenames | Leah Neukirchen | 2017-11-24 | 1 | -17/+92 |
| | | | | Closes #1. | ||||
* | print_format: add escapes for octal and hex bytes | Leah Neukirchen | 2017-11-19 | 1 | -2/+27 |
| | |||||
* | callback: free unregistered fileinfo immediately | Leah Neukirchen | 2017-11-13 | 1 | -5/+7 |
| | |||||
* | set sensible default widths for -U | Leah Neukirchen | 2017-11-13 | 1 | -0/+10 |
| | |||||
* | traverse: avoid out of bounds read | Leah Neukirchen | 2017-11-13 | 1 | -1/+1 |
| | |||||
* | add action 'skip' which is always false | Leah Neukirchen | 2017-11-12 | 1 | -0/+5 |
| | |||||
* | revert making prune be false | Leah Neukirchen | 2017-11-12 | 1 | -2/+2 |
| | | | | | This makes things more confusing in the end (and is not how find(1) works either). | ||||
* | fitree_walk: don't crash on empty tree | Leah Neukirchen | 2017-11-12 | 1 | -0/+2 |
| | |||||
* | replace use of <search.h> (tsearch etc.) with own tree implementation | Leah Neukirchen | 2017-11-10 | 1 | -127/+242 |
| | | | | | | | | tsearch(3) can be terribly inefficient on some systems, degrading to linear search. This AA-tree implementation is not measurably slower than e.g. musl's AVL tree implementation. Meanwhile, get rid of the silly tsearch API. | ||||
* | replace GNU-extension tdestroy(3) with something portable | Leah Neukirchen | 2017-11-08 | 1 | -3/+7 |
| | |||||
* | fix -1 and -A | Leah Neukirchen | 2017-11-08 | 1 | -2/+2 |
| | |||||
* | make prune evaluate to false | Leah Neukirchen | 2017-11-08 | 1 | -1/+1 |
| | |||||
* | add ternary (conditional) operator | Leah Neukirchen | 2017-11-08 | 1 | -4/+32 |
| | |||||
* | new option -B for breadth first search | Leah Neukirchen | 2017-11-08 | 1 | -11/+55 |
| | | | | | | | | We use two trees and add the newly found files to the other one, then loop until no more files are found. prune, -t, -L and -x work, depth needs a slight hack; loop detection and -U doesn't work. | ||||
* | free fileinfo when -U is used | Leah Neukirchen | 2017-11-08 | 1 | -3/+15 |
| | |||||
* | callback: use ino_t for entry count. | Leah Neukirchen | 2017-11-08 | 1 | -2/+3 |
| | |||||
* | define PATH_MAX to a sensible upper bound if undefined | Leah Neukirchen | 2017-11-07 | 1 | -0/+5 |
| | |||||
* | readlin: check if buffer is too small | Leah Neukirchen | 2017-11-07 | 1 | -2/+2 |
| | |||||
* | scan_filesystems: on Linux, try /proc/mounts if _PATH_MOUNTED does not exist | Leah Neukirchen | 2017-11-04 | 1 | -0/+2 |
| | | | | (Discovered on WSL 1703) | ||||
* | eval: clean up code | Leah Neukirchen | 2017-11-03 | 1 | -11/+11 |
| | |||||
* | scan_filesystems: support DragonFlyBSD | Leah Neukirchen | 2017-10-17 | 1 | -1/+1 |
| | |||||
* | add -e REGEX as a shortcut to filter basenames | Leah Neukirchen | 2017-09-20 | 1 | -32/+39 |
| | |||||
* | recurse: guard DT_DIR optimization | Leah Neukirchen | 2017-09-17 | 1 | -0/+4 |
| | |||||
* | detect when stat(2)-ing all files is not needed | Leah Neukirchen | 2017-09-17 | 1 | -32/+83 |
| | | | | | | | | | | | For plain file listing, no stat(2) information is needed; inspect the format string and ordering options to ensure this is true. We assume any custom test implies needing to stat for now. recurse detects in opendir/readdir whether to recurse on DT_DIR etc. This massively speeds up listing large trees, making lr -U almost as fast as plain GNU find(1). | ||||
* | recurse: lstat on symlink loops, don't fail | Leah Neukirchen | 2017-09-17 | 1 | -1/+2 |
| | |||||
* | lr: hyperlink_on: print hostname and use RFC3986-style URI encoding | Leah Neukirchen | 2017-09-12 | 1 | -4/+34 |
| | |||||
* | add -X for OSC 8 hyperlinks | Leah Neukirchen | 2017-09-12 | 1 | -1/+42 |
| | |||||
* | style | Leah Neukirchen | 2017-08-31 | 1 | -40/+40 |
| | |||||
* | print_format: cleanup | Leah Neukirchen | 2017-08-29 | 1 | -4/+4 |
| | |||||
* | style: consistent casts | Leah Neukirchen | 2017-08-29 | 1 | -7/+7 |
| | |||||
* | recurse: need special case for "lr /" | Leah Neukirchen | 2017-08-29 | 1 | -1/+2 |
| | |||||
* | print_format: use snprintf for bounded strcpy | Leah Neukirchen | 2017-08-29 | 1 | -1/+1 |
| | |||||
* | print_format: compute time_t difference as long | Leah Neukirchen | 2017-08-29 | 1 | -4/+5 |
| | |||||
* | xattr_string: return empty static string | Leah Neukirchen | 2017-08-29 | 1 | -2/+4 |
| | |||||
* | add strop negations | Leah Neukirchen | 2017-08-21 | 1 | -0/+19 |
| | |||||
* | lr: add action "color <num>" to override colors | Leah Neukirchen | 2017-07-27 | 1 | -0/+16 |
| | |||||
* | lr: breaking change: swap meaning of -Q | Leah Neukirchen | 2017-07-27 | 1 | -10/+14 |
| | | | | This is a bit unfortunate, but the better behavior in the long run. | ||||
* | lr: use setlocale. | Leah Neukirchen | 2017-07-19 | 1 | -0/+3 |
| | | | | | | | | This will enable date stamp formatting for %A, %C, %T as known from date(1). Note that LC_COLLATE and LC_CTYPE is not respected, as we continue to use strcmp. Closes #12. | ||||
* | lr: print errors and return status 1 when a toplevel argument cannot be stat'ed | Leah Neukirchen | 2017-07-13 | 1 | -4/+14 |
| | |||||
* | lr: fix output of empty string | Leah Neukirchen | 2017-06-20 | 1 | -2/+5 |
| | |||||
* | lr: add -C to allow coloring of files | Leah Neukirchen | 2017-06-20 | 1 | -8/+45 |
| | |||||
* | lr: allow empty string for . | Leah Neukirchen | 2017-06-20 | 1 | -7/+11 |
| | |||||
* | lr: support @file to read file names from file | Leah Neukirchen | 2017-06-20 | 1 | -0/+9 |
| | |||||
* | lr: set prefixl to 0 when reading from stdin | Leah Neukirchen | 2017-06-20 | 1 | -1/+5 |
| | |||||
* | Leahize | Leah Neukirchen | 2017-04-25 | 1 | -1/+1 |
| | |||||
* | parse_error: portably declare noreturn | Christian Neukirchen | 2016-08-30 | 1 | -1/+11 |
| | | | | Squelches many clang-analyzer false positives. |