Skip to content

Include hidden files by default in commit and stage add - #63

Merged
srerickson merged 5 commits into
mainfrom
include-hidden-by-default
May 3, 2026
Merged

Include hidden files by default in commit and stage add#63
srerickson merged 5 commits into
mainfrom
include-hidden-by-default

Conversation

@srerickson

@srerickson srerickson commented May 2, 2026

Copy link
Copy Markdown
Owner

Summary

Change the default behavior so hidden files (.*) are included during commit and stage add operations. Previously hidden files were excluded by default.

Changes

  • commit: Hidden files are now included by default. Added --no-hidden flag to exclude them.
  • stage add: Hidden files are now included by default. Removed the --all flag; added --no-hidden flag to exclude them.
  • AddDir() (internal API): Includes hidden files by default. Added AddWithoutHidden() option. Deprecated AddWithHidden() (now a no-op).
  • Tests: Updated to reflect new defaults. All passing.

stage diff is unchanged — it retains its existing --all flag.

closes #62

exe.dev user and others added 5 commits May 2, 2026 22:30
Change the default behavior so hidden files (.*) are included during
commit and stage add operations. Previously hidden files were excluded
by default, requiring --all to include them.

Changes:
- commit: include hidden files by default; add --no-hidden flag to exclude
- stage add: include hidden files by default; replace --all flag with --no-hidden
- stage diff: include hidden files by default when used with --dir; replace --all with --no-hidden
- AddDir(): include hidden files by default; add AddWithoutHidden() option
- AddWithHidden() is deprecated (now a no-op since hidden is the default)
- Update all tests to reflect new defaults

Co-authored-by: Shelley <[email protected]>
stage diff was not in scope for the hidden-files default change.

Co-authored-by: Shelley <[email protected]>
@srerickson
srerickson force-pushed the include-hidden-by-default branch from be78589 to c2e5be4 Compare May 3, 2026 00:36
@srerickson
srerickson merged commit 8589eb8 into main May 3, 2026
@srerickson
srerickson deleted the include-hidden-by-default branch May 3, 2026 02:47
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.

Hidden Files Not Copying Over with OCFL Commit

1 participant