Skip to content

Commit

Permalink
tail: improve file handling for --follow=name
Browse files Browse the repository at this point in the history
* Change data structure from Vec to HashMap in order to better
keep track of files while watching them with `--follow=name`.
E.g. file paths that were removed while watching them and exit
if no files are remaining, etc.

* Move all logic related to file handling into a FileHandling trait

* Simplify handling of the verbose flag.
  • Loading branch information
jhscheer committed Oct 7, 2021
1 parent 22b5928 commit ccd8890
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 208 deletions.
Loading

0 comments on commit ccd8890

Please sign in to comment.