@@ -3479,23 +3479,23 @@ character; \f[CR][a\-z]\f[R] to match any character in a range;
34793479separator (like \f[CR]/\f[R]); \f[CR]**\f[R] to match zero or more
34803480subdirectories and/or zero or more characters at the start of a file
34813481name; etc.
3482- Also, hledger\[aq]s globs always exclude the including file itself .
3482+ For convenience, \f[CR]include\f[R] always excludes the current file.
34833483So, you can do
34843484.IP \[bu] 2
34853485\f[CR]include *.journal\f[R] to include all other journal files in the
34863486current directory (excluding dot files)
34873487.IP \[bu] 2
34883488\f[CR]include **.journal\f[R] to include all other journal files in this
3489- directory and below (excluding dot directories/ files)
3489+ directory and below (excluding dot files and top\-level dot directories )
34903490.IP \[bu] 2
34913491\f[CR]include timelogs/2???.timedot\f[R] to include all timedot files
34923492named like a year number.
34933493.PP
3494- There is a limitation: hledger \[aq]s globs always exclude paths
3495- involving dot files or dot directories.
3496- This is a workaround for unavoidable dot directory traversal; you can
3497- disable it and revert to older behaviour with the
3498- \f[CR]\-\-old\-glob\ f[R] flag, for now .
3494+ Note \f[CR]*\f[R] and \f[CR]**\f[R] usually won \[aq]t match dot files or
3495+ dot directories, with one exception: \f[CR]**\f[R] does search
3496+ non\-top\-level dot directories.
3497+ If this causes problems, make your glob pattern more specific (eg
3498+ \f[CR]**.journal\ f[R] instead of \f[CR]**\f[R]) .
34993499.PP
35003500If you are using many, or deeply nested, include files, and have an
35013501error that\[aq]s hard to pinpoint: a good troubleshooting command is
0 commit comments