Skip to content

Commit

Permalink
Updated help string and added an example for ignored files in file list
Browse files Browse the repository at this point in the history
debugging

debugging

update

update

remove details

remove summary line

changelog
  • Loading branch information
iesahin committed Dec 13, 2024
1 parent 949cb81 commit e290948
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Fixed xvc file list help text and added a test/example for ignored files
- Added more targets to Github builds

## 0.6.12 (2024-11-30)
Expand Down
43 changes: 40 additions & 3 deletions book/src/ref/xvc-file-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Options:
GB and TB to represent sizes larger than 1MB.
- {{ats}}: actual timestamp. The timestamp of the workspace file.
- {{name}}: The name of the file or directory.
- {{cst}}: cache status. One of "=", ">", "<", "X", or "?" to show
- {{cst}}: cache status. One of "=", ">", "<", or "X" to show
whether the file timestamp is the same as the cached timestamp, newer,
older, not cached or not tracked.
older, and not tracked.
- {{rcd8}}: recorded content digest stored in the cache. First 8 digits.
- {{rcd64}}: recorded content digest stored in the cache. All 64 digits.
- {{rrm}}: recorded recheck method. Whether the entry is linked to the workspace
Expand Down Expand Up @@ -457,7 +457,7 @@ Total #: 5 Workspace Size: 10015 Cached Size: 10015
```

```admonish info
If `{{acd8}}` or `{{acd64}}` is not present in the format string, Xvc doesn't calculate these hashes. If you have large number of files where the default format (that includes actual content hashes) runs slowly, you may customize it to not to include these columns.
If `{{acd8}}` or `{{acd64}}` is not present in the format string, Xvc doesn't calculate these hashes. If you have large number of files where the default format (that includes actual content hashes) runs slowly, you can customize it to not to include these columns.
```

If you want to get a quick glimpse of what needs to carried in, or rechecked,
Expand All @@ -483,3 +483,40 @@ The cache status column shows `=` for unchanged files in the cache, `X` for
untracked files, `>` for files that there is newer version in the cache, and `<`
for files that there is a newer version in the workspace. The comparison is done
between recorded timestamp and actual timestamp with an accuracy of 1 second.

## Ignored Files

Ignored files and directories in `.xvcignore` are not listed in the results.

```console
$ zsh -c "echo 'dir-0005' > .xvcignore"

$ xvc file list --format='{{name}}' --no-summary
dir-0004/file-0005.bin
dir-0004/file-0004.bin
dir-0004/file-0003.bin
dir-0004/file-0002.bin
dir-0004/file-0001.bin
dir-0004
dir-0003/file-0005.bin
dir-0003/file-0004.bin
dir-0003/file-0003.bin
dir-0003/file-0002.bin
dir-0003/file-0001.bin
dir-0003
dir-0002/file-0005.bin
dir-0002/file-0004.bin
dir-0002/file-0003.bin
dir-0002/file-0002.bin
dir-0002/file-0001.bin
dir-0002
dir-0001/file-0005.bin
dir-0001/file-0004.bin
dir-0001/file-0003.bin
dir-0001/file-0002.bin
dir-0001/file-0001.bin
dir-0001/a-new-file.bin
dir-0001


```
4 changes: 2 additions & 2 deletions file/src/list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ pub struct ListCLI {
/// GB and TB to represent sizes larger than 1MB.
/// - {{ats}}: actual timestamp. The timestamp of the workspace file.
/// - {{name}}: The name of the file or directory.
/// - {{cst}}: cache status. One of "=", ">", "<", "X", or "?" to show
/// - {{cst}}: cache status. One of "=", ">", "<", or "X" to show
/// whether the file timestamp is the same as the cached timestamp, newer,
/// older, not cached or not tracked.
/// older, and not tracked.
/// - {{rcd8}}: recorded content digest stored in the cache. First 8 digits.
/// - {{rcd64}}: recorded content digest stored in the cache. All 64 digits.
/// - {{rrm}}: recorded recheck method. Whether the entry is linked to the workspace
Expand Down

0 comments on commit e290948

Please sign in to comment.