Skip to content

Skip unchanged file section updates#341

Merged
codeforester merged 1 commit into
masterfrom
bug/331-20260531-file-section-noop
May 31, 2026
Merged

Skip unchanged file section updates#341
codeforester merged 1 commit into
masterfrom
bug/331-20260531-file-section-noop

Conversation

@codeforester
Copy link
Copy Markdown
Owner

Summary

  • Detect unchanged managed sections before update_file_section rewrites the target file.
  • Demote unchanged and absent-remove paths to DEBUG logs while keeping INFO output for actual mutations.
  • Cover unchanged section inode preservation and idempotent basectl update-profile output.

Validation

  • bats lib/bash/file/tests/lib_file.bats
  • bats cli/bash/commands/basectl/tests/update-profile.bats
  • bash -n lib/bash/file/lib_file.sh
  • env -u BASE_HOME HOME=/private/tmp/base-review-home BASE_TEST_PYTHON=/Users/rameshhp/.base.d/base/.venv/bin/python bin/base-test
  • git diff --check

Closes #331

@codeforester codeforester merged commit 32f00ae into master May 31, 2026
16 checks passed
@codeforester codeforester deleted the bug/331-20260531-file-section-noop branch May 31, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update_file_section always logs Updating even when file content would not change

1 participant