Skip to content

Commit cf9f160

Browse files
authored
Merge branch 'coderabbitai:main' into main
2 parents 5e667ee + 0f3ef38 commit cf9f160

File tree

3 files changed

+45
-4
lines changed

3 files changed

+45
-4
lines changed

CHANGELOG.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,40 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
66

77
## [Unreleased]
88

9+
## [2.3.1] - 2026-02-17
10+
11+
### Added
12+
13+
- Google Antigravity adapter ([#121](https://github.com/coderabbitai/git-worktree-runner/pull/121))
14+
15+
### Changed
16+
17+
- Copy-on-write (CoW) cloning for directory copies on supported filesystems ([#122](https://github.com/coderabbitai/git-worktree-runner/pull/122))
18+
19+
### Fixed
20+
21+
- `gtr`/coreutils naming conflict resolved and `cd` completions added ([#125](https://github.com/coderabbitai/git-worktree-runner/pull/125))
22+
- Main repo root resolved correctly from inside worktrees ([#126](https://github.com/coderabbitai/git-worktree-runner/pull/126))
23+
- `resolve_target` fallback via `git worktree list` for external worktrees ([#128](https://github.com/coderabbitai/git-worktree-runner/pull/128))
24+
25+
## [2.3.0] - 2026-02-12
26+
27+
### Added
28+
29+
- Color output with `NO_COLOR`/`GTR_COLOR`/`gtr.ui.color` config support ([#120](https://github.com/coderabbitai/git-worktree-runner/pull/120))
30+
- Per-command help system with `_help_<command>()` functions ([#120](https://github.com/coderabbitai/git-worktree-runner/pull/120))
31+
- BATS test suite with 174 automated tests ([#119](https://github.com/coderabbitai/git-worktree-runner/pull/119))
32+
33+
### Changed
34+
35+
- Modularized monolithic `bin/gtr` into `lib/*.sh` libraries and `lib/commands/*.sh` ([#119](https://github.com/coderabbitai/git-worktree-runner/pull/119))
36+
- Unified adapter loading for editors and AI tools ([#116](https://github.com/coderabbitai/git-worktree-runner/pull/116))
37+
- Unified bidirectional config key mapping ([#115](https://github.com/coderabbitai/git-worktree-runner/pull/115))
38+
39+
### Fixed
40+
41+
- Removed ghost completion flag and added missing completions ([#111](https://github.com/coderabbitai/git-worktree-runner/pull/111))
42+
943
## [2.2.0] - 2026-02-10
1044

1145
### Added
@@ -106,7 +140,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
106140

107141
- Improved base directory resolution logic to distinguish `.` (repo root), `./path` (repo-internal) from other relative values (sibling directories)
108142

109-
[Unreleased]: https://github.com/coderabbitai/git-worktree-runner/compare/v2.2.0...HEAD
143+
[Unreleased]: https://github.com/coderabbitai/git-worktree-runner/compare/v2.3.1...HEAD
144+
[2.3.1]: https://github.com/coderabbitai/git-worktree-runner/compare/v2.3.0...v2.3.1
145+
[2.3.0]: https://github.com/coderabbitai/git-worktree-runner/compare/v2.2.0...v2.3.0
110146
[2.2.0]: https://github.com/coderabbitai/git-worktree-runner/compare/v2.1.0...v2.2.0
111147
[2.1.0]: https://github.com/coderabbitai/git-worktree-runner/compare/v2.0.0...v2.1.0
112148
[2.0.0]: https://github.com/coderabbitai/git-worktree-runner/compare/v1.0.0...v2.0.0

bin/git-gtr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ -n "${GTR_DEBUG:-}" ]; then
1111
fi
1212

1313
# Version
14-
GTR_VERSION="2.3.0"
14+
GTR_VERSION="2.3.1"
1515

1616
# Find the script directory (resolve symlinks; allow env override)
1717
resolve_script_dir() {

lib/copy.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,15 @@ copy_directories() {
331331
# Find directories matching the pattern
332332
# Use -path for patterns with slashes (e.g., vendor/bundle), -name for basenames
333333
# Note: case inside $() inside heredocs breaks Bash 3.2, so compute first
334+
# Use -maxdepth 1 for simple basenames to avoid scanning entire repo (e.g., node_modules)
335+
# Falls back to recursive search if shallow search finds nothing
334336
local find_results
335337
case "$pattern" in
336-
*/*) find_results=$(find . -type d -path "./$pattern" 2>/dev/null) ;;
337-
*) find_results=$(find . -type d -name "$pattern" 2>/dev/null) ;;
338+
*/*) find_results=$(find . -type d -path "./$pattern" 2>/dev/null || true) ;;
339+
*) find_results=$(find . -maxdepth 1 -type d -name "$pattern" 2>/dev/null || true)
340+
if [ -z "$find_results" ]; then
341+
find_results=$(find . -type d -name "$pattern" 2>/dev/null || true)
342+
fi ;;
338343
esac
339344

340345
while IFS= read -r dir_path; do

0 commit comments

Comments
 (0)