Skip to content

refactor(git): reorganize .gitignore.global entries for clarity - #1255

Merged
shunkakinoki merged 1 commit into
mainfrom
bun-sh
Mar 22, 2026
Merged

refactor(git): reorganize .gitignore.global entries for clarity#1255
shunkakinoki merged 1 commit into
mainfrom
bun-sh

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Mar 22, 2026

Copy link
Copy Markdown
Owner

Entire-Checkpoint: 04088a6adeb6


Summary by cubic

Reorganized .gitignore.global to group rules by category and add common cache, env, and tooling directories. Keeps repos clean and consistent across projects.

  • Refactors
    • Grouped entries: AI tooling, env files, tmp files, deprecated, other, general.
    • Added ignores: .conductor/, .pi/, .worktrees/, .cache/, .devenv/, .jj/.
    • Deduplicated and moved existing env/tmp rules for clarity.

Written for commit bed02ed. Summary will update on new commits.

Copilot AI review requested due to automatic review settings March 22, 2026 04:47
@mesa-dot-dev

mesa-dot-dev Bot commented Mar 22, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@shunkakinoki
shunkakinoki merged commit c612145 into main Mar 22, 2026
25 of 28 checks passed
@shunkakinoki
shunkakinoki deleted the bun-sh branch March 22, 2026 04:47
@coderabbitai

coderabbitai Bot commented Mar 22, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b9ceb368-42fc-4e16-a88f-3a2d08200d8a

📥 Commits

Reviewing files that changed from the base of the PR and between 2169bb9 and bed02ed.

📒 Files selected for processing (1)
  • home-manager/programs/git/.gitignore.global

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Reorganized Git ignore patterns to improve configuration structure and ensure consistent handling of common development files and directories.

Walkthrough

Reorganized ignore patterns in .gitignore.global by consolidating AI-related directories, environment files, cache tooling, temporary files, and deprecated patterns to the top of the file, removing redundant patterns from their previous lower position.

Changes

Cohort / File(s) Summary
Gitignore Pattern Organization
home-manager/programs/git/.gitignore.global
Moved ignore patterns for AI tools (.conductor/, .cursor/, .entire/, .pi/, .serena/, .worktrees/), environment files (.env.*, .env.local, .envrc), caches (.cache/, .devenv/, .jj/), temp files (tmp, .tmp*, tmp*), and deprecated files (*.deprecated) from scattered locations to a consolidated block at the file's top.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐰 Hoppity patterns rearranged with care,
AI tools and temps now all in one lair,
Moved to the top, nice and neat,
Gitignore logic, now complete!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bun-sh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors the global gitignore configuration by introducing logical categorization for its entries. The primary goal is to improve the clarity and structure of the .gitignore.global file, making it more intuitive for developers to understand and manage file exclusion patterns across various projects.

Highlights

  • Gitignore Refactoring: The global gitignore file (.gitignore.global) has been reorganized to group related entries under new, descriptive categories such as 'AI', 'Env files', 'Other', 'Tmp files', and 'Ignore deprecated files', enhancing readability and maintainability.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@mesa-dot-dev

mesa-dot-dev Bot commented Mar 22, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Reorganized .gitignore.global entries for clarity.

What changed?

{Detailed list of changes by file}

Description generated by Mesa. Update settings

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the .gitignore.global file by reorganizing its entries for better clarity. The overall change is positive, but I've identified a minor miscategorization. I've provided a suggestion to move the .worktrees/ entry from the # AI section to the more appropriate # Other section, as it's a Git feature rather than an AI-related directory.

Comment on lines +1 to +7
# AI
.conductor/
.cursor/
.entire/
.pi/
.serena/
.worktrees/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The .worktrees/ directory is related to Git's worktree feature, not AI. It would be more appropriate to move it to the # Other section. I'm suggesting its removal from this section and will propose adding it to the correct section in a separate comment.

# AI
.conductor/
.cursor/
.entire/
.pi/
.serena/

# Other
.cache/
.devenv/
.jj/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

To follow up on the previous comment, the .worktrees/ entry should be added here under the # Other section. This section already contains ignores for other development tools like .devenv/ and .jj/, making it a better fit.

.jj/
.worktrees/

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Reorganizes the global gitignore entries to group related patterns (AI tools, env files, temp files, etc.) for easier scanning and maintenance.

Changes:

  • Reordered patterns into themed sections at the top of the file.
  • Removed the duplicated “Env files / Tmp files / AI / deprecated” block from the bottom.
  • Added a small “Other” section for cache/dev tooling directories.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +10 to +11
.env.*
.env.local

Copilot AI Mar 22, 2026

Copy link

Choose a reason for hiding this comment

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

The pattern .env.* does not ignore the common .env file (without a suffix), and .env.local is redundant because it already matches .env.*. Consider adding .env explicitly and removing .env.local to avoid duplication.

Suggested change
.env.*
.env.local
.env
.env.*

Copilot uses AI. Check for mistakes.
Comment on lines +20 to +23
tmp
.tmp*
tmp*

Copilot AI Mar 22, 2026

Copy link

Choose a reason for hiding this comment

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

The tmp patterns overlap and are broader than necessary: tmp* already covers tmp, and tmp* will ignore any file/dir starting with tmp (e.g., tmpfile.go), which can hide legitimate files. Consider narrowing these to directory-specific patterns (e.g., tmp/, .tmp*/) and removing redundant entries.

Suggested change
tmp
.tmp*
tmp*
tmp/
.tmp*/

Copilot uses AI. Check for mistakes.
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.

2 participants