Include hidden files by default in commit and stage add - #63
Merged
Conversation
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
force-pushed
the
include-hidden-by-default
branch
from
May 3, 2026 00:36
be78589 to
c2e5be4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Change the default behavior so hidden files (
.*) are included duringcommitandstage addoperations. Previously hidden files were excluded by default.Changes
commit: Hidden files are now included by default. Added--no-hiddenflag to exclude them.stage add: Hidden files are now included by default. Removed the--allflag; added--no-hiddenflag to exclude them.AddDir()(internal API): Includes hidden files by default. AddedAddWithoutHidden()option. DeprecatedAddWithHidden()(now a no-op).stage diffis unchanged — it retains its existing--allflag.closes #62