Skip to content

Commit 4c4eb0a

Browse files
committed
Add fine detail on fingerprinting a dir containing symbolic links
1 parent 0c409c7 commit 4c4eb0a

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

cmd/kosli/fingerprint.go

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,19 @@ exclude ^zam/file.txt^ which is relative to the DIR-PATH.
1616
The supported glob pattern syntax is what is documented here: https://pkg.go.dev/path/filepath#Match ,
1717
plus the ability to use recursive globs "**"
1818
19-
If the directory structure contains symbolic links to a file the content of the file it points to is included in the
20-
fingerprint calculation. If a symbolic link points to a directory the path it is pointing to is include in the
21-
fingerprint calculation.
19+
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:
20+
- the name of the link ('from/this/file') *is* included in the fingerprint.
21+
- the name of the link ('from/this/file') *is* subject to ^.kosli_ignore^ entries.
22+
- the name of the target ('to/another/file') is *not* included in the fingerprint.
23+
- the content of target *is* included in the fingerprint, even if the target is outside the root directory being fingerprinted.
24+
25+
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:
26+
- the name of the link ('from/this/dir') *is* included in the fingerprint.
27+
- the name of the link ('from/this/dir') *is* subject to ^.kosli_ignore^ entries.
28+
- the name of the target ('to/another/dir') *is* included in the fingerprint, even if the target is outside the root directory being fingerprinted.
29+
- the name of the target ('to/another/dir') is *not* subject to ^.kosli_ignore^ entries.
30+
- the content of the target is *not* included in the fingerprint.
31+
2232
2333
` + kosliIgnoreDesc
2434

0 commit comments

Comments
 (0)