coreutils/src/uu/truncate
Jeffrey Finkelstein 0999b00ff9 truncate: re-organize into one func for each mode
Reorganize the code in `truncate.rs` into three distinct functions
representing the three modes of operation of the `truncate` program. The
three modes are

- `truncate -r RFILE FILE`, which sets the length of `FILE` to match the
  length of `RFILE`,
- `truncate -r RFILE -s NUM FILE`, which sets the length of `FILE`
  relative to the given `RFILE`,
- `truncate -s NUM FILE`, which sets the length of `FILE` either
  absolutely or relative to its curent length.

This organization of the code makes it more concise and easier to
follow.
2021-05-29 15:11:27 +02:00
..
src truncate: re-organize into one func for each mode 2021-05-29 15:11:27 +02:00
Cargo.toml new release 0.0.6 to address the cat issue 2021-04-03 16:06:58 +02:00