Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | recurse: fix error detection | Leah Neukirchen | 2022-09-10 | 1 | -1/+1 |
| | |||||
* | add -of to sort by file basename. | Leah Neukirchen | 2022-08-26 | 1 | -0/+2 |
| | | | | Closes #21. | ||||
* | print_noprefix: only drop char after prefixl if it is a / | Leah Neukirchen | 2021-06-25 | 1 | -1/+2 |
| | | | | | | | | | | | | | Else the first character gets lost in this example: % mkdir -p service/src service/test % touch service/src/foo.c %lr -B -s service/src service/test . . oo.c Reported by @Profpatsch. | ||||
* | count_entries: fix when fi->fpath is "" (at toplevel) | Leah Neukirchen | 2020-08-04 | 1 | -1/+1 |
| | | | | Reported by @Profpatsch. | ||||
* | fix -A | Leah Neukirchen | 2020-01-12 | 1 | -1/+1 |
| | | | | Found by Valodim. | ||||
* | update copyright years | Leah Neukirchen | 2020-01-01 | 1 | -1/+1 |
| | |||||
* | recurse: pass guesssubdir with -W | Leah Neukirchen | 2019-12-19 | 1 | -11/+17 |
| | |||||
* | make code C89 | Leah Neukirchen | 2019-12-19 | 1 | -3/+5 |
| | |||||
* | don't use // comments | Leah Neukirchen | 2019-12-19 | 1 | -31/+32 |
| | |||||
* | add -W to sort results by name and print during traversal | Leah Neukirchen | 2019-12-05 | 1 | -7/+45 |
| | |||||
* | print_shquoted: fast-path for unescaped file name output | Leah Neukirchen | 2019-12-05 | 1 | -1/+7 |
| | |||||
* | initialize new.total | Leah Neukirchen | 2019-12-05 | 1 | -0/+1 |
| | |||||
* | only hide directories, other entries can just be dropped | Leah Neukirchen | 2019-03-15 | 1 | -1/+1 |
| | |||||
* | define a hidden color and use it for -B so traversal can continue | Leah Neukirchen | 2019-03-15 | 1 | -5/+16 |
| | |||||
* | update copyright years | Leah Neukirchen | 2019-02-08 | 1 | -1/+1 |
| | |||||
* | parse_string: off-by-one for reallocation | Leah Neukirchen | 2019-01-29 | 1 | -1/+1 |
| | |||||
* | callback: ensure trailing nul byte | Leah Neukirchen | 2018-08-08 | 1 | -1/+1 |
| | |||||
* | 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 |
| |