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
1 change: 1 addition & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ github:

protected_branches:
main: {}
branch_11x: {}
branch_10_0: {}
branch_10_1: {}
branch_10_2: {}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-checks-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
push:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'

schedule:
- cron: '44 1 * * *'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-checks-gradle-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'
paths:
- '.github/workflows/run-checks-gradle-upgrade.yml'
- 'gradle/wrapper/**'
Expand All @@ -17,7 +17,7 @@ on:
push:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'
paths:
- '.github/workflows/run-checks-gradle-upgrade.yml'
- 'gradle/wrapper/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-checks-mod-analysis-common-hunspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
pull_request:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'
paths:
- '.github/workflows/run-checks-mod-analysis-common.yml'
- 'lucene/analysis/common/**'

push:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'
paths:
- '.github/workflows/run-checks-mod-analysis-common.yml'
- 'lucene/analysis/common/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-checks-mod-distribution.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
pull_request:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'

push:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'

permissions: {}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-checks-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
pull_request:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'
paths:
- '.github/workflows/run-checks-python.yml'
- 'dev-tools/scripts/**'

push:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'
paths:
- '.github/workflows/run-checks-python.yml'
- 'dev-tools/scripts/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-special-checks-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
push:
branches:
- 'main'
- 'branch_10x'
- 'branch_11x'

permissions: {}

Expand Down
8 changes: 4 additions & 4 deletions dev-docs/working-between-major-versions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ https://git-scm.com/docs/git-worktree[Git worktree] is a feature of git that all
store separate checkouts of the same repository, at the same time. The git metadata is shared between the different
directories, so any remotes added or local commits made from one worktree are available to all other worktrees as well.

For Lucene, this allows us to have separate directories (worktrees) that manage the checkouts of `main` and `branch_8x`
For Lucene, this allows us to have separate directories (worktrees) that manage the checkouts of `main` and `branch_11x`
(or any other major branch). One can make a commit on `main`, then easily switch directories and cherry-pick the commit
onto `branch_8x` without having to worry about gradle or ant files. This setup also allows the commit to be tested on
`main` and `branch_8x` simultaneously.
onto `branch_11x` without having to worry about gradle or ant files. This setup also allows the commit to be tested on
`main` and `branch_11x` simultaneously.

=== Setup

Expand All @@ -51,7 +51,7 @@ cd lucene
git clone git@github.com:apache/lucene.git main
cd main
# For each branch that you want a separate directory created for, add a worktree
git worktree add ../10x branch_10x
git worktree add ../11x branch_11x
----

=== Using the Worktrees
Expand Down
Loading