Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions cmd/kosli/fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,19 @@ exclude ^zam/file.txt^ which is relative to the DIR-PATH.
The supported glob pattern syntax is what is documented here: https://pkg.go.dev/path/filepath#Match ,
plus the ability to use recursive globs "**"

If the directory structure contains symbolic links to a file the content of the file it points to is included in the
fingerprint calculation. If a symbolic link points to a directory the path it is pointing to is include in the
fingerprint calculation.
If the directory structure contains a symbolic link to a *file* (for example, a link 'from/this/file' and a target of 'to/another/file') then:
- the name of the link ('from/this/file') *is* included in the fingerprint.
- the name of the link ('from/this/file') *is* subject to ^.kosli_ignore^ entries.
- the name of the target ('to/another/file') is *not* included in the fingerprint.
- the content of target *is* included in the fingerprint, even if the target is outside the root directory being fingerprinted.

If the directory structure contains a symbolic link to a *directory* (for example, a link 'from/this/dir' and a target of 'to/another/dir') then:
- the name of the link ('from/this/dir') *is* included in the fingerprint.
- the name of the link ('from/this/dir') *is* subject to ^.kosli_ignore^ entries.
- the name of the target ('to/another/dir') *is* included in the fingerprint, even if the target is outside the root directory being fingerprinted.
- the name of the target ('to/another/dir') is *not* subject to ^.kosli_ignore^ entries.
- the content of the target is *not* included in the fingerprint.


` + kosliIgnoreDesc

Expand Down