Skip to content

refactor(git): reorganize global ignore entries - #1256

Merged
shunkakinoki merged 3 commits into
mainfrom
chore/gitignore-global-updates
Mar 22, 2026
Merged

refactor(git): reorganize global ignore entries#1256
shunkakinoki merged 3 commits into
mainfrom
chore/gitignore-global-updates

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Mar 22, 2026

Copy link
Copy Markdown
Owner

Reorganize .gitignore.global so tool-specific, temporary, and environment-only files are grouped consistently.\n\nThis adds missing ignores for local agent and workspace state such as .conductor/, .pi/, .worktrees/, .cache/, .devenv/, and .jj/, while keeping the existing env, tmp, and deprecated-file patterns in clearer sections. That keeps machine-local artifacts out of commits and makes the global ignore list easier to scan and extend.\n\nI considered appending the new entries in place, but regrouping the existing patterns now avoids duplicate categories and keeps the non-macOS ignores in one predictable block.


Summary by cubic

Reorganized .gitignore.global into clear sections and added missing local tool and workspace directories. Also updated gomi UI to the dracula colorscheme and cleaned up its config.

  • Refactors
    • Grouped env, tmp, deprecated, and tool-specific patterns.
    • Added .conductor/, .cursor/, .entire/, .pi/, .serena/, .worktrees/, .cache/, .devenv/, .jj/.

Written for commit 61af881. Summary will update on new commits.

@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: fd2ecc4e-3716-4f2f-94f8-ed06162beb92

📥 Commits

Reviewing files that changed from the base of the PR and between c612145 and 61af881.

📒 Files selected for processing (2)
  • config/gomi/config.yaml
  • 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

  • Style

    • Updated UI theme configuration with new color scheme and palette adjustments.
  • Chores

    • Reorganized and expanded repository ignore patterns for improved file management.

Walkthrough

Configuration updates applied to gomi's UI theme, switching the color scheme from nord to dracula and adjusting various color hex values. Global gitignore patterns reorganized to consolidate AI-related directories, environment files, and temporary files at the top of the file without functional changes to ignored paths.

Changes

Cohort / File(s) Summary
UI Theme Configuration
config/gomi/config.yaml
Updated colorscheme from nord to dracula; modified hex color values for list view (cursor, selected, filter match/prompt), detail view (border), nested panes (deleted_from/deleted_at, preview_pane), and deletion_dialog color from #FF007F to #FF79C6; removed blank lines between top-level YAML sections.
Git Global Ignore Patterns
home-manager/programs/git/.gitignore.global
Reorganized ignore patterns by moving AI-related directories (.conductor/, .cursor/, .entire/, .pi/, .serena/, .worktrees/), environment files (.env.*, .env.local, .envrc), and cache/temp files (.cache/, .devenv/, .jj/, tmp, .tmp*, *.deprecated) from later in file to top section without changing ignored paths.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 Colors dance from north to south,
Dracula's bite upon the mouth,
While gitignore files reorganize,
Hiding secrets from prying eyes—
A rabbit's work in config's guise! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/gitignore-global-updates

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 Git ignore file (.gitignore.global) by reorganizing existing entries into clearer, categorized sections and adding new ignore patterns. The primary goal is to prevent common local development and tool-specific files from being inadvertently committed, thereby improving repository cleanliness and making the ignore list easier to manage and extend.

Highlights

  • Reorganized Global Gitignore: The .gitignore.global file has been restructured to group related ignore patterns more logically, enhancing readability and maintainability.
  • Added New Ignore Entries: New patterns were introduced to ignore various local agent and workspace state files, such as .conductor/, .pi/, .worktrees/, .cache/, .devenv/, and .jj/.
  • Improved Consistency: Tool-specific, temporary, and environment-only files are now consistently grouped, preventing machine-local artifacts from being committed.
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 the global gitignore to group tool-specific, temporary, and environment-only files more consistently, adding new ignores for local agent and workspace state. Also updated the gomi UI color scheme to dracula and cleaned its config.

What changed?

  • home-manager/programs/git/.gitignore.global: Significantly reorganized and expanded, moving existing ignore patterns to the beginning, extending the AI section, and adding a new "Other" section for .cache/, .devenv/, and .jj/.
  • config/gomi/config.yaml: Updated to switch the UI color scheme from nord to dracula, involving comprehensive changes to color values for various UI elements.

Description generated by Mesa. Update settings

@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 effectively reorganizes the global .gitignore file, making it much cleaner and easier to maintain. The grouping of ignore patterns into logical sections is a great improvement. I've added a couple of minor suggestions to further refine the organization and remove a redundant pattern. Overall, this is a solid refactoring.

Comment on lines +2 to +17
.conductor/
.cursor/
.entire/
.pi/
.serena/
.worktrees/

# Env files
.env.*
.env.local
.envrc

# 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

The .worktrees/ entry seems misplaced under the # AI section. git worktree is a core Git feature for managing multiple working trees and is not related to AI. To improve the logical grouping, consider moving it to the # Other section, which contains other development-related artifacts.

.conductor/
.cursor/
.entire/
.pi/
.serena/

# Env files
.env.*
.env.local
.envrc

# Other
.cache/
.devenv/
.jj/
.worktrees/

Comment on lines +20 to +22
tmp
.tmp*
tmp*

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 tmp pattern is redundant because the tmp* pattern already covers any file or directory named tmp. You can remove the tmp line to simplify the configuration.

.tmp*
tmp*

@shunkakinoki
shunkakinoki marked this pull request as ready for review March 22, 2026 05:44
Copilot AI review requested due to automatic review settings March 22, 2026 05:44
@shunkakinoki
shunkakinoki merged commit 4553c0c into main Mar 22, 2026
27 of 28 checks passed
@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 deleted the chore/gitignore-global-updates branch March 22, 2026 05:44

@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 2 files

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

This PR refactors the Home Manager global gitignore file to be easier to scan/extend while adding ignores for additional machine-local tool/workspace state, and updates the gomi UI theme colors.

Changes:

  • Reorganized home-manager/programs/git/.gitignore.global into clearer grouped sections and added several new local-state ignore patterns.
  • Switched gomi preview colorscheme to dracula and updated UI color values accordingly.

Reviewed changes

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

File Description
home-manager/programs/git/.gitignore.global Regroups global ignore patterns and adds entries for additional local agent/workspace directories.
config/gomi/config.yaml Updates gomi UI theme to Dracula with corresponding color palette changes.

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


# Env files
.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 .env.local entry is redundant because it’s already matched by the preceding .env.* pattern. Consider removing .env.local (or narrowing the glob if you intended to exclude only certain .env.* files).

Suggested change
.env.local

Copilot uses AI. Check for mistakes.
.jj/

# Tmp files
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.

In the tmp section, tmp* already matches tmp (since * can match an empty string), so keeping both is redundant. Consider dropping the plain tmp entry unless you specifically want it to stand out separately.

Suggested change
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