Skip to content

Commit

Permalink
Update docs/en/guide/sync.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitinChen authored Nov 28, 2024
1 parent 3e9b8b9 commit de092ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/guide/sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Below is the workflow of full path filtering mode:
![Full path filtering workflow](../images/sync-full-path-filtering-mode-flow-chart.svg)

For example, consider a file located at `a1/b1/c1.txt` and three matching patterns `--include 'a*.txt' --include 'c1.txt' --exclude 'c*.txt'`. In full path filtering mode:
The string `a1/b1/c1.txt` is first matched against `--include 'a*.txt'`. This fails because `*` does not match the `/` character (see [matching rules](#matching-rules)).
The string `a1/b1/c1.txt` is first matched against `--include 'a*.txt'`. This fails because `*` does not match the `/` character (see [matching rules](#matching-rules)).
`a1/b1/c1.txt` is then matched against `--include 'c1.txt'`, which succeeds. According to the mode's logic, subsequent patterns, such as `--exclude 'c*.txt'`, are ignored once a match is found. This file will be handled by the `sync` command.

Here are some more examples:
Expand Down

0 comments on commit de092ec

Please sign in to comment.