GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add support for worktrees by klaren · Pull Request #1119 · diffplug/spotless

Conversation

@klaren

@klaren klaren commented Feb 4, 2022

Copy link
Copy Markdown
Contributor

Git supports using the same local repository for multiple checked-out worktrees. JGit does not fully support this, so we have to do some workarounds for it to work.

The previous workaround provided by #965 did not take commondir into consideration, which is the location of a few files.

More details are available at: https://git-scm.com/docs/git-worktree#_details

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
klaren and others added 6 commits February 4, 2022 13:45
@klaren
Add support for worktrees
c3a32ee
Git supports using the same local repository for multiple checked-out worktrees. JGit does not fully support this, so we have to do some workarounds for it to work.

The previous workaround provided by diffplug#965 did not take `commondir` into consideration, which is the location of a few files.
@klaren
Update changelog
4b47e1c
@nedtwigg
Fix spotbugs warning.
6889321
@nedtwigg
Fix changelog merge conflicts.
e4d025b
@nedtwigg
Oops, fix the changelog entries.
27d1645
@nedtwigg
Double the Gradle metaspace to help with flaky CI.
6a03212
@nedtwigg
nedtwigg enabled auto-merge February 9, 2022 00:17
@nedtwigg
nedtwigg merged commit 693803c into diffplug:main Feb 9, 2022
@nedtwigg

nedtwigg commented Feb 9, 2022

Copy link
Copy Markdown
Member

Thanks very much, published in plugin-gradle 6.2.2 and plugin-maven 2.20.2`.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nedtwigg nedtwigg mentioned this pull request Feb 9, 2022
Spotless fails with an exception if the project is checked out using the git worktree functionality #75
Closed
@nedtwigg nedtwigg mentioned this pull request Mar 29, 2022
DiffPlug supports git core.eol, but does not support core.autocrlf #540
Closed
@arulrajnet arulrajnet mentioned this pull request Apr 2, 2022
Fix #540 #1158
Merged
nedtwigg added a commit that referenced this pull request Apr 6, 2022
@nedtwigg
Fix git line ending handling (#540) which was broken by #1119 (#1158)
e1d34dc
@groldan groldan mentioned this pull request Apr 15, 2022
Upgrade spotless-maven-plugin to latest version supporting git worktree checkouts geoserver/geoserver#5816
Merged
3 of 11 tasks
@mikanIchinose mikanIchinose mentioned this pull request Jul 22, 2023
still ratchetFrom broken when using git worktrees #1765
Closed
@Corvus400 Corvus400 mentioned this pull request Apr 25, 2026
spotless ratchetFrom を CI 環境のみ有効化 (worktree 内 build 失敗回避) Corvus400/fictional-drug-and-disease-ref-mock-server#268
Merged
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@klaren @nedtwigg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.