Changelog
Alle Änderungen an fsg, neueste zuerst, die Einträge auf Englisch. Grundlage: Keep a Changelog, Semantic Versioning.
-
v0.5.0
Aktuell- Neu
--docsopens the documentation in the browser and prints the URL when no browser is available - Neu Documentation site with English and German pages at https://karnesth.github.io/fsg/
- Geändert The README is shorter and links to the documentation for options, markers, configuration and styles
- Neu
-
- Neu Comments after an entry (
# ..., separated by at least two spaces) are kept on--updateand aligned - Neu Several marked blocks per file; options in the start marker (
path,depth,dirs-only,exclude,include,fence,style,summary) apply to one block, between the config and the command line - Neu
-s/--stylewith the built-in stylesunicode,ascii,rounded,heavyanddouble, plus--glyph KEY=VALUEand[tool.fsg.glyphs]for own glyphs - Neu
--summary/--no-summaryand the config keysummaryfor a line with the number of directories and files - Neu
--copyto copy the tree to the clipboard with clip.exe, pbcopy, wl-copy, xclip or xsel - Geändert A start marker after another one without end marker, and an end marker without start marker, are reported with their line number instead of being skipped
- Neu Comments after an entry (
-
- Neu
-i/--includeand the config keyincludeto show only entries matching a glob pattern; exclude wins over include - Geändert Without a git repository,
--depthand--excludestop the directory walk early instead of filtering afterward, sofsg -d 1on large directories returns immediately - Sicherheit GitHub Actions are pinned to commit SHAs, Dependabot opens weekly pull requests to update them
- Sicherheit The release workflow runs the full CI before building and publishing
- Neu
-
- Geändert Status lines start with a symbol (
✔,•,✖, or[ok],[info],[error]with--ascii), are colored in terminals and show a hint on how to fix a problem;NO_COLORandFORCE_COLORare respected - Geändert Every error exits with status 2, including a path that is not a directory; status 1 only means an outdated tree
- Geändert The search for a config file stops at the git repository root, or at the home directory outside a repository
- Geändert Indented code blocks and longer code fences are recognized when looking for the markers
- Behoben Tracked files deleted from the working tree no longer appear in the tree
- Behoben
--setup-hookadds the fsg step before a finalexecline of an existing git hook - Behoben An existing pre-commit entry is detected by its
repo:line, so comments or similarly named repositories no longer block the setup - Behoben
--versionand--setup-hookwork when fsg runs from a source checkout without being installed
- Geändert Status lines start with a symbol (
-
- Sicherheit Resolve the git executable from absolute PATH entries only, so a
git.exeinside the current directory is never run on Windows - Sicherheit Quote the target file in the message of the generated git hook, so shell syntax in the file name is not executed
- Sicherheit Reject a configured
paththat leaves the directory of the config file - Behoben
--updateno longer overwrites content when the end marker is missing: both markers must stand on their own line outside a code block - Behoben
--setup-hookchecks that the target file exists and holds both markers before writing a hook - Behoben Files are written atomically, so an interrupted run cannot leave a half-written README or hook
- Behoben A failing
git ls-filesis reported instead of producing an empty tree
- Sicherheit Resolve the git executable from absolute PATH entries only, so a
-
- Neu Render a directory as a tree, wrapped in a
plaintextcode fence - Neu Respect
.gitignoreinside git repositories, skip common generated directories outside of them - Neu
--depth,--dirs-only,--excludeand--fence/--no-fenceto shape the output - Neu
--asciifor environments without Unicode support; output is always written as UTF-8 - Neu
--updateand--checkto keep the tree between<!-- fsg:start -->and<!-- fsg:end -->up to date - Neu
--setup-hookto add fsg to an existing.pre-commit-config.yamlor the gitpre-commithook - Neu pre-commit hooks
fsgandfsg-check - Neu Configuration via
.fsg.tomlor[tool.fsg]inpyproject.toml - Neu
--versionand--help
- Neu Render a directory as a tree, wrapped in a