Skip to content

Add -prune to find command to avoid descending into it#41

Merged
gcbeltramini merged 1 commit into
mainfrom
gb/git
Apr 3, 2026
Merged

Add -prune to find command to avoid descending into it#41
gcbeltramini merged 1 commit into
mainfrom
gb/git

Conversation

@gcbeltramini
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the git helper commands that scan directories for repositories to ensure find does not descend into .git directories while searching, reducing unnecessary traversal.

Changes:

  • Add -prune to the find ... -name ".git" pipeline in stashed-changes, local-changes, and local-branches.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
commands/git/stashed-changes.sh Prunes .git directories during repo discovery to avoid descending into them.
commands/git/local-changes.sh Same find pruning change for uncommitted-change scanning.
commands/git/local-branches.sh Same find pruning change for local-branch scanning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gcbeltramini gcbeltramini merged commit bc2ffc3 into main Apr 3, 2026
5 checks passed
@gcbeltramini gcbeltramini deleted the gb/git branch April 3, 2026 16:50
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.

2 participants