From 702528d8e16b702bccc70df3ddfee687391e2955 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 24 Jun 2025 01:30:19 +0300 Subject: feat: add branch exclusion feature with regex patterns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Users can now exclude branches from synchronization using regex patterns in the configuration file. This is useful for: - Excluding temporary or experimental branches - Skipping vendor or third-party branches - Ignoring deployment-specific branches Configuration example: ```json { "exclude_branches": [ "^codex/", // Exclude branches starting with "codex/" "^temp-", // Exclude branches starting with "temp-" "-wip$" // Exclude branches ending with "-wip" ] } ``` Features: - Regex pattern matching for flexible exclusion rules - Clear reporting of excluded branches during sync - Excluded branches are filtered from sync but still analyzed for abandonment - Invalid regex patterns are reported but don't stop sync The feature helps maintain cleaner synchronization by allowing users to ignore branches that shouldn't be synchronized across all repositories. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/cli/handlers.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/cli') diff --git a/internal/cli/handlers.go b/internal/cli/handlers.go index 6ff6c4c..e2cad92 100644 --- a/internal/cli/handlers.go +++ b/internal/cli/handlers.go @@ -98,6 +98,11 @@ func ShowConfigHelp() { "repositories": [ "repo1", "repo2" + ], + "exclude_branches": [ + "^codex/", + "^temp-", + "-wip$" ] }`) } -- cgit v1.2.3