Skip to content

Commit

Permalink
Merge pull request #2484 from dathere/2479-qsv_autoindex_size-documen…
Browse files Browse the repository at this point in the history
…tation

docs: QSV_AUTOINDEX => QSV_AUTOINDEX_SIZE
  • Loading branch information
jqnatividad authored Jan 27, 2025
2 parents 8ea7bab + 56ef1d4 commit 018ab4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cmd/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ automatically used by commands that can benefit from it. If the original CSV
data changes after the index is made, commands that try to use it will result
in an error (you have to regenerate the index before it can be used again).
However, if the environment variable QSV_AUTOINDEX is set, qsv will automatically
create an index when none is detected, and stale indices will be automatically
updated as well.
However, if the environment variable QSV_AUTOINDEX_SIZE is set, qsv will
automatically create an index when the input file size >= specified size (bytes).
It will also automatically update stale indices as well.
Usage:
qsv index [options] <input>
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ impl Config {
/// Check if the index file exists and is newer than the CSV file.
/// If so, return the index file.
/// If not, return None.
/// Unless QSV_AUTOINDEX is set, in which case, we'll recreate the
/// Unless QSV_AUTOINDEX_SIZE is set, in which case, we'll recreate the
/// stale index automatically
#[inline]
pub fn indexed(&self) -> CliResult<Option<Indexed<fs::File, fs::File>>> {
Expand Down

0 comments on commit 018ab4e

Please sign in to comment.