Fossil SCM
Updated the function comment on glob_create() to match what it actually does.
Commit
c43205d738bc36620d3bc2cad12a4de97f32eca72daa9c0cdf632cd5b6191fcc
Parent
b878923997bbcf1…
1 file changed
+6
-5
+6
-5
| --- src/glob.c | ||
| +++ src/glob.c | ||
| @@ -89,17 +89,18 @@ | ||
| 89 | 89 | char **azPattern; /* Array of pointers to patterns */ |
| 90 | 90 | }; |
| 91 | 91 | #endif /* INTERFACE */ |
| 92 | 92 | |
| 93 | 93 | /* |
| 94 | -** zPatternList is a comma-separated list of glob patterns. Parse up | |
| 95 | -** that list and use it to create a new Glob object. | |
| 94 | +** zPatternList is a comma- or whitespace-separated list of glob patterns. | |
| 95 | +** Parse that list and use it to create a new Glob object. | |
| 96 | 96 | ** |
| 97 | -** Elements of the glob list may be optionally enclosed in single our | |
| 98 | -** double-quotes. This allows a comma to be part of a glob pattern. | |
| 97 | +** Elements of the glob list may be optionally enclosed in single- or | |
| 98 | +** double-quotes. This allows commas and whitespace to be part of a | |
| 99 | +** glob pattern. | |
| 99 | 100 | ** |
| 100 | -** Leading and trailing spaces on unquoted glob patterns are ignored. | |
| 101 | +** Leading and trailing spaces on glob patterns are ignored unless quoted. | |
| 101 | 102 | ** |
| 102 | 103 | ** An empty or null pattern list results in a null glob, which will |
| 103 | 104 | ** match nothing. |
| 104 | 105 | */ |
| 105 | 106 | Glob *glob_create(const char *zPatternList){ |
| 106 | 107 |
| --- src/glob.c | |
| +++ src/glob.c | |
| @@ -89,17 +89,18 @@ | |
| 89 | char **azPattern; /* Array of pointers to patterns */ |
| 90 | }; |
| 91 | #endif /* INTERFACE */ |
| 92 | |
| 93 | /* |
| 94 | ** zPatternList is a comma-separated list of glob patterns. Parse up |
| 95 | ** that list and use it to create a new Glob object. |
| 96 | ** |
| 97 | ** Elements of the glob list may be optionally enclosed in single our |
| 98 | ** double-quotes. This allows a comma to be part of a glob pattern. |
| 99 | ** |
| 100 | ** Leading and trailing spaces on unquoted glob patterns are ignored. |
| 101 | ** |
| 102 | ** An empty or null pattern list results in a null glob, which will |
| 103 | ** match nothing. |
| 104 | */ |
| 105 | Glob *glob_create(const char *zPatternList){ |
| 106 |
| --- src/glob.c | |
| +++ src/glob.c | |
| @@ -89,17 +89,18 @@ | |
| 89 | char **azPattern; /* Array of pointers to patterns */ |
| 90 | }; |
| 91 | #endif /* INTERFACE */ |
| 92 | |
| 93 | /* |
| 94 | ** zPatternList is a comma- or whitespace-separated list of glob patterns. |
| 95 | ** Parse that list and use it to create a new Glob object. |
| 96 | ** |
| 97 | ** Elements of the glob list may be optionally enclosed in single- or |
| 98 | ** double-quotes. This allows commas and whitespace to be part of a |
| 99 | ** glob pattern. |
| 100 | ** |
| 101 | ** Leading and trailing spaces on glob patterns are ignored unless quoted. |
| 102 | ** |
| 103 | ** An empty or null pattern list results in a null glob, which will |
| 104 | ** match nothing. |
| 105 | */ |
| 106 | Glob *glob_create(const char *zPatternList){ |
| 107 |