Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands/git/local-branches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare path
path=${path:-.}

echo_gray "Repositories with local branches:"
find "$path" -type d -name ".git" -print0 | while IFS= read -r -d $'\0' git_dir; do
find "$path" -type d -name ".git" -prune -print0 | while IFS= read -r -d $'\0' git_dir; do
repo_dir=$(dirname "$git_dir")
local_branches=$(git -C "$repo_dir" branch --format="%(refname:short)" | grep -vE '^\*|main|master|develop|DEV' || :)
if [[ -n "$local_branches" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion commands/git/local-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare path
path=${path:-.}

echo_gray "Repositories with uncommitted changes:"
find "$path" -type d -name ".git" -print0 | while IFS= read -r -d $'\0' git_dir; do
find "$path" -type d -name ".git" -prune -print0 | while IFS= read -r -d $'\0' git_dir; do
repo_dir=$(dirname "$git_dir")
git_status_output=$(git -C "$repo_dir" status --porcelain)
if [[ -n "$git_status_output" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion commands/git/stashed-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare path
path=${path:-.}

echo_gray "Repositories with stashed changes:"
find "$path" -type d -name ".git" -print0 | while IFS= read -r -d $'\0' git_dir; do
find "$path" -type d -name ".git" -prune -print0 | while IFS= read -r -d $'\0' git_dir; do
repo_dir=$(dirname "$git_dir")
if git -C "$repo_dir" stash list | grep -q .; then
echo "$repo_dir"
Expand Down
Loading