summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add some more --sudo testsTavian Barnes2019-05-094-5/+54
| | | | | | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912180#17 pointed out that d_ino is not trustworthy on mount points either. Make sure we don't use it.
* Release 1.4.11.4.1Tavian Barnes2019-05-053-2/+13
|
* color: Don't stat() if we don't need toTavian Barnes2019-05-055-33/+95
|
* bftw: Pass a const struct BFTW * to the callbackTavian Barnes2019-05-057-83/+84
|
* tests: Add missing expectation fileTavian Barnes2019-05-041-0/+0
|
* bftw: Add a caching stat() API to struct BFTWTavian Barnes2019-05-049-343/+432
|
* stat: Get rid of bfs_fstat()Tavian Barnes2019-05-043-15/+13
| | | | We can just use bfs_stat() with a NULL at_path.
* stat: Unify the flags argumentsTavian Barnes2019-05-0410-45/+66
|
* tests: Fix test_xtype_reorderTavian Barnes2019-04-281-2/+2
|
* Add support for the NO_COLOR environment variableTavian Barnes2019-04-271-4/+10
| | | | C.f. https://no-color.org/
* parse: Add some missing costs/probabilitiesTavian Barnes2019-04-241-0/+4
| | | | Previously we weren't re-ordering -type in front of -newerXY
* tests: Add some tests that require sudoTavian Barnes2019-04-245-13/+89
|
* tests: Redirect stdin from /dev/nullTavian Barnes2019-04-241-0/+3
|
* tests: Use more colorsTavian Barnes2019-04-241-32/+39
|
* parse: Allow things like -uid ++10Tavian Barnes2019-04-216-3/+105
| | | | GNU find does too.
* tests: Fix --bfs=pathTavian Barnes2019-04-211-10/+10
|
* tests: Don't test symlink permissionsTavian Barnes2019-04-202-32/+32
| | | | They're different between platforms.
* tests: Add a test with -printf %H and multiple rootsTavian Barnes2019-04-202-0/+36
| | | | To make sure we're keeping track of different root paths correctly
* trie: Make trie_remove() take a leaf instead of a keyTavian Barnes2019-04-205-62/+27
|
* tests: Refuse to run as rootTavian Barnes2019-04-181-256/+267
| | | | | Suggested by Chris Lamb here: https://salsa.debian.org/lamby/pkg-bfs/commit/b173efb35da126adb39b0984219d6a2fd9ff428f#note_74877
* Release 1.41.4Tavian Barnes2019-04-1510-9/+23
|
* tests: Fix color NUL byte test on platforms where sort expects textTavian Barnes2019-03-283-1/+17
|
* color: Implement ln=targetTavian Barnes2019-03-283-18/+82
| | | | | With ln=target in LS_COLORS, links should be colored according to their target's stat() info, not their own.
* color: Implement escape sequence parsingTavian Barnes2019-03-284-196/+426
| | | | | GNU ls allows custom escape sequences inside color values, including control characters and embedded NULs.
* dstring: Add a dstrdup() functionTavian Barnes2019-03-272-6/+23
|
* trie: Store void* values rather than const void*Tavian Barnes2019-03-274-5/+5
| | | | Fewer casts needed this way.
* opt: Optimize redundant comma expressionsTavian Barnes2019-03-214-5/+21
|
* tests: Respond to terminal resizesTavian Barnes2019-03-211-3/+9
|
* tests: Make the output more colorful and nicerTavian Barnes2019-03-201-18/+16
|
* opt: Replace -a -false/-o -true with -not when possibleTavian Barnes2019-03-203-0/+25
|
* tests: Add utilities for comparing colors to lsTavian Barnes2019-03-193-1/+93
|
* tests: Use archive extensions for color testsTavian Barnes2019-03-1726-6/+82
|
* color: Match the behaviour of GNU ls more closelyTavian Barnes2019-03-1727-51/+289
|
* main: Add pointer to trie.[ch]Tavian Barnes2019-03-171-0/+1
|
* README: Reorganize it a bitTavian Barnes2019-03-081-15/+27
|
* tests: Add a test for extension overridesTavian Barnes2019-03-073-0/+44
|
* eval: Fix -unique with -depthTavian Barnes2019-03-074-1/+33
|
* bftw: Work around d_type being wrong for bind mounts on LinuxTavian Barnes2019-03-068-43/+121
| | | | | | 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
* bftw: Switch from taking separate parameters to a parameters structTavian Barnes2019-03-063-30/+50
|
* parse: Use a trie to hold currently open filesTavian Barnes2019-03-065-31/+37
|
* mtab: Fix implementation for all platformsTavian Barnes2019-03-061-14/+7
|
* mtab: Replace the linked list of file system types with a trieTavian Barnes2019-03-061-44/+24
|
* trie: Add a function to get an arbitrary leafTavian Barnes2019-03-062-0/+14
| | | | This is useful if the stored values need to be cleaned up.
* trie: Fix jump node offsetsTavian Barnes2019-03-061-1/+1
|
* trie: Minor optimizationTavian Barnes2019-03-051-7/+6
|
* color: Use a trie to store file extension colorsTavian Barnes2019-03-041-48/+82
| | | | | This new implementation is about 14% faster overall at printing colored files.
* trie: Implement prefix/postfix searchTavian Barnes2019-03-042-0/+106
|
* trie: Implement removalTavian Barnes2019-03-042-0/+150
|
* trie: Revamp the API to support mappingsTavian Barnes2019-03-043-169/+127
|
* Implement -uniqueTavian Barnes2019-03-018-3/+95
| | | | Closes #48