Skip to content

Reorganize .gitignore per workspace directory - #18

Draft
DanGould wants to merge 1 commit into
masterfrom
session4/issue-1300
Draft

DanGould wants to merge 1 commit into
masterfrom
session4/issue-1300

Conversation

@DanGould

@DanGould DanGould commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Summary

The root .gitignore was a flat list covering every crate's artifacts, making it hard to tell which patterns belong to which workspace member. This matters for contributors using alternative VCS tools like jujutsu, and for anyone trying to understand what a specific crate produces. Distributing patterns to crate-level files makes each workspace member self-documenting.

Closes payjoin#1300

Approach

Move crate-specific ignore patterns (build artifacts, test fixtures, generated files) from the root .gitignore into per-crate .gitignore files for payjoin-cli and payjoin-directory, creating those files where they didn't exist. The root .gitignore is left with only workspace-global patterns (target/, Cargo.lock, IDE settings, mutants.out*, data/). Every entry across all .gitignore files gets an explanatory comment so future contributors know why each pattern exists.

Open questions

None

Disclosure: co-authored by Claude

Distribute root .gitignore patterns to crate-specific files
so each workspace member documents its own ignored artifacts.
Add explanatory comments to every entry. This is compatible
with jujutsu which reads .gitignore files natively.

Changes:
- Root: keep only workspace-global patterns (target/, Cargo.lock,
  IDE settings, mutants.out*, .DS_Store, *.rs.bk, data/)
- payjoin-cli: new file for config.toml and *.sqlite
- payjoin-directory: new file for config.toml, *.ikm, *.dat, data/
- payjoin-mailroom: add config.toml and data/ to existing *.dat
- payjoin-ffi: slim down to __pycache__/ only; patterns moved to
  root (IDE/OS) or child dirs (python/, csharp/, dart/)
- payjoin-ffi/{python,csharp,dart,javascript}: add comments and
  consolidate patterns previously scattered in parent
- fuzz: add explanatory comments to existing entries
- Delete payjoin/.gitignore (Cargo.lock covered by root)

Closes payjoin#1300
@DanGould
DanGould force-pushed the session4/issue-1300 branch from 7621982 to 3de9ca4 Compare March 2, 2026 10:39
@coderabbitai

coderabbitai Bot commented Mar 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch session4/issue-1300

Comment @coderabbitai help to get the list of available commands and usage tips.

@DanGould
DanGould force-pushed the session4/issue-1300 branch from 3de9ca4 to 31eb1be Compare March 2, 2026 10:41
@coveralls

coveralls commented Mar 2, 2026 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 22572327732

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.484%

Totals Coverage Status
Change from base Build 22572195695: 0.0%
Covered Lines: 10624
Relevant Lines: 12880

💛 - Coveralls

This branch has not been deployed

No deployments
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.

.gitignorganization

2 participants