Skip to content

fix: skip .git worktree pointer files during walk#80

Open
leno23 wants to merge 1 commit into
dolph:mainfrom
leno23:fix/skip-git-file-issue-19-v2
Open

fix: skip .git worktree pointer files during walk#80
leno23 wants to merge 1 commit into
dolph:mainfrom
leno23:fix/skip-git-file-issue-19-v2

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 30, 2026

Fixes #19

Made with Cursor

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b93ce324f7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread find_replace_test.go
t.Cleanup(func() { _ = os.Chdir(prev) })
}


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove extra blank line to satisfy gofmt

With this inserted blank line, gofmt -l find_replace.go find_replace_test.go prints find_replace_test.go; the repository instructions require gofmt -l . to print nothing before a PR, so this can fail the formatting check even though the code builds otherwise.

Useful? React with 👍 / 👎.

Ignore any entry named .git whether it is a directory or a worktree/
submodule pointer file so find-replace does not corrupt git metadata.

Fixes dolph#19
@leno23 leno23 force-pushed the fix/skip-git-file-issue-19-v2 branch from b93ce32 to ee3d21e Compare May 31, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.git as a regular file (worktrees, submodules) is rewritten and corrupted

1 participant