X Tutup
Skip to content

ignore beads#11942

Merged
RayBB merged 1 commit intomasterfrom
gitignore-beads
Feb 26, 2026
Merged

ignore beads#11942
RayBB merged 1 commit intomasterfrom
gitignore-beads

Conversation

@mekarpeles
Copy link
Member

This pull request updates the .gitattributes file to specify a custom merge driver for beads JSONL files. This ensures that files matching .beads/issues.jsonl will use the beads merge driver during merges, which can help resolve conflicts more intelligently for these files.

Configuration changes:

  • .gitattributes: Added a rule to use the beads merge driver for .beads/issues.jsonl files.

Copilot AI review requested due to automatic review settings February 26, 2026 17:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR configures git to ignore the .beads directory and sets up a custom merge driver for beads JSONL issue tracking files. The PR title "ignore beads" suggests the primary goal is to exclude the beads directory from version control, with the merge driver configuration as a secondary enhancement for handling conflicts in beads issue files.

Changes:

  • Added .beads directory to .gitignore to exclude it from version control
  • Configured a custom beads merge driver in .gitattributes for .beads/issues.jsonl files

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
.gitignore Added .beads to ignore the beads directory and its contents
.gitattributes Added merge driver configuration for .beads/issues.jsonl files with a custom beads merge strategy

# MARC binary
*.mrc binary -linguist-detectable

# Use bd merge for beads JSONL files
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The comment says "Use bd merge" but should say "Use beads merge" to accurately describe the merge driver being configured.

Suggested change
# Use bd merge for beads JSONL files
# Use beads merge for beads JSONL files

Copilot uses AI. Check for mistakes.
Comment on lines +13 to +14
# Use bd merge for beads JSONL files
.beads/issues.jsonl merge=beads
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The .gitattributes file references a 'beads' merge driver, but this merge driver needs to be configured in the user's git config for it to work. Without the corresponding git config setup (e.g., git config merge.beads.driver "..." or in a .gitconfig file), git will fail to merge these files when conflicts occur. Consider adding documentation or setup instructions in the README, CONTRIBUTING.md, or a dedicated setup script to configure this merge driver, or include a .gitconfig file in the repository that developers can reference.

Suggested change
# Use bd merge for beads JSONL files
.beads/issues.jsonl merge=beads
# beads JSONL files will use the default merge driver
# (custom 'beads' merge driver removed to avoid requiring extra git config)

Copilot uses AI. Check for mistakes.
@RayBB
Copy link
Collaborator

RayBB commented Feb 26, 2026

I've also been wondering how to deal with these changes since I'm using beads as well. I think it's a good idea to merge this as it is. Thanks for doing it!

@RayBB RayBB merged commit 3767221 into master Feb 26, 2026
12 checks passed
@RayBB RayBB deleted the gitignore-beads branch February 26, 2026 18:15
RayBB pushed a commit that referenced this pull request Feb 26, 2026
bhardwajparth51 pushed a commit to bhardwajparth51/openlibrary that referenced this pull request Mar 3, 2026
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.

3 participants

X Tutup