Atmos version
1.225.0
Reproduction
# 1. Generate a scaffold template with --git so it has a merge base.
atmos scaffold generate <template-with-a-yaml-file> ./out --defaults --git
# 2. Confirm the YAML file's blank lines are intact.
cat ./out/some-file.yaml
# 3. Re-run --update with nothing changed on the template side (same source, same ref).
atmos scaffold generate <same-template> ./out --defaults --update
# 4. Compare.
git -C ./out diff --stat # the file shows a diff, despite no real change
cat ./out/some-file.yaml # blank lines separating sections are gone
Expected
A YAML file with blank lines separating sections, run through --update with no meaningful change between the template's old and new versions, should come back byte-for-byte identical — blank lines included. --update should not rewrite a file it didn't actually change.
Impact
Every atmos scaffold generate --update run reformats YAML files that have no real changes, producing spurious diffs in the user's git history and destroying intentional visual structure (blank lines separating logical sections) in every managed YAML file, project-wide, on every update.
Atmos version
1.225.0
Reproduction
Expected
A YAML file with blank lines separating sections, run through
--updatewith no meaningful change between the template's old and new versions, should come back byte-for-byte identical — blank lines included.--updateshould not rewrite a file it didn't actually change.Impact
Every
atmos scaffold generate --updaterun reformats YAML files that have no real changes, producing spurious diffs in the user's git history and destroying intentional visual structure (blank lines separating logical sections) in every managed YAML file, project-wide, on every update.