Skip to content

gitignore: ignore in-tree build generated files - #1388

Merged
gaoxueyu merged 1 commit into
IvorySQL:masterfrom
123123213weqw:gitignore-in-tree-generated-1387
Jul 13, 2026
Merged

gaoxueyu merged 1 commit into
IvorySQL:masterfrom
123123213weqw:gitignore-in-tree-generated-1387

Conversation

@123123213weqw

@123123213weqw 123123213weqw commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #1387.

After an in-tree build, several IvorySQL-generated files show up as untracked under git status, because they are not covered by any .gitignore — unlike their upstream PostgreSQL counterparts.

This mirrors upstream PostgreSQL's convention: per-directory .gitignore files with anchored entries, placing each generated file next to its non-Oracle sibling. The ten files reported in the issue are now ignored:

Generated file .gitignore Existing sibling entry
src/bin/psql/ora_psqlscanslash.c src/bin/psql/.gitignore /psqlscanslash.c
src/bin/psql/psqlplusparse.c src/bin/psql/.gitignore (parser output)
src/bin/psql/psqlplusparse.h src/bin/psql/.gitignore (parser output)
src/bin/psql/psqlplusscan.c src/bin/psql/.gitignore (scanner output)
src/fe_utils/ora_keywords.c src/fe_utils/.gitignore /psqlscan.c
src/fe_utils/ora_kwlist_d.h src/fe_utils/.gitignore /psqlscan.c
src/include/catalog/postgres_oracle.bki src/include/catalog/.gitignore /postgres.bki
src/oracle_fe_utils/ora_psqlscan.c src/oracle_fe_utils/.gitignore (new) —
src/test/regress/ora_pg_regress src/test/regress/.gitignore /pg_regress
contrib/ivorysql_ora/ivorysql_ora--1.0.sql contrib/ivorysql_ora/.gitignore (new) —

Verification

After the change, git status reports only the six .gitignore changes and no longer lists the generated files. Confirmed with git check-ignore -v that each generated file is matched by the rule added in its directory:

contrib/ivorysql_ora/.gitignore:1:/ivorysql_ora--1.0.sql    contrib/ivorysql_ora/ivorysql_ora--1.0.sql
src/bin/psql/.gitignore:7:/ora_psqlscanslash.c              src/bin/psql/ora_psqlscanslash.c
src/bin/psql/.gitignore:8:/psqlplusparse.c                  src/bin/psql/psqlplusparse.c
src/bin/psql/.gitignore:9:/psqlplusparse.h                  src/bin/psql/psqlplusparse.h
src/bin/psql/.gitignore:10:/psqlplusscan.c                  src/bin/psql/psqlplusscan.c
src/fe_utils/.gitignore:2:/ora_keywords.c                   src/fe_utils/ora_keywords.c
src/fe_utils/.gitignore:3:/ora_kwlist_d.h                   src/fe_utils/ora_kwlist_d.h
src/include/catalog/.gitignore:9:/postgres_oracle.bki       src/include/catalog/postgres_oracle.bki
src/oracle_fe_utils/.gitignore:1:/ora_psqlscan.c            src/oracle_fe_utils/ora_psqlscan.c
src/test/regress/.gitignore:3:/ora_pg_regress               src/test/regress/ora_pg_regress

Summary by CodeRabbit

  • Chores
    • Updated project ignore rules to exclude additional generated artifacts, including alternate parser-related files, Oracle-related keyword lists, catalog artifacts, regression test output, and SQL build artifacts.
    • Reduces noise from untracked build/test outputs and keeps the working directory cleaner during development and testing.

After an in-tree build, several IvorySQL-generated files show up as
untracked under "git status" because they are not covered by any
.gitignore, unlike their upstream PostgreSQL counterparts.

Mirror the upstream convention of per-directory .gitignore files with
anchored entries, adding each generated file next to its non-Oracle
sibling:

- src/bin/psql/.gitignore: ora_psqlscanslash.c, psqlplusparse.c,
  psqlplusparse.h, psqlplusscan.c
- src/fe_utils/.gitignore: ora_keywords.c, ora_kwlist_d.h
- src/include/catalog/.gitignore: postgres_oracle.bki
- src/test/regress/.gitignore: ora_pg_regress
- src/oracle_fe_utils/.gitignore (new): ora_psqlscan.c
- contrib/ivorysql_ora/.gitignore (new): ivorysql_ora--1.0.sql

Closes IvorySQL#1387.

Signed-off-by: 王越 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cdc50228-4a95-4791-9234-14c8196c8b04

📥 Commits

Reviewing files that changed from the base of the PR and between ad8c916 and 391c351.

📒 Files selected for processing (6)
  • contrib/ivorysql_ora/.gitignore
  • src/bin/psql/.gitignore
  • src/fe_utils/.gitignore
  • src/include/catalog/.gitignore
  • src/oracle_fe_utils/.gitignore
  • src/test/regress/.gitignore
✅ Files skipped from review due to trivial changes (6)
  • contrib/ivorysql_ora/.gitignore
  • src/include/catalog/.gitignore
  • src/oracle_fe_utils/.gitignore
  • src/fe_utils/.gitignore
  • src/bin/psql/.gitignore
  • src/test/regress/.gitignore

📝 Walkthrough

Walkthrough

Added .gitignore entries across six directories for generated IvorySQL and Oracle-related build artifacts, including parser sources, catalog files, utility outputs, an extension SQL script, and regression binaries.

Changes

Generated artifact ignores

Layer / File(s) Summary
Ignore generated build outputs
contrib/ivorysql_ora/.gitignore, src/bin/psql/.gitignore, src/fe_utils/.gitignore, src/include/catalog/.gitignore, src/oracle_fe_utils/.gitignore, src/test/regress/.gitignore
Added ignore patterns for generated SQL, parser, keyword, catalog, Oracle utility, and regression artifacts.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: ignoring in-tree build generated files.
Linked Issues check ✅ Passed The PR adds ignore rules for the ten generated files reported in issue #1387.
Out of Scope Changes check ✅ Passed The changes are limited to .gitignore updates and stay within the issue scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@bigplaice

Copy link
Copy Markdown
Collaborator

Thanks for continuous contribution to IvorySQL! Will review this patch in next week.

@123123213weqw

Copy link
Copy Markdown
Contributor Author

@bigplaice Thank you for the update and for taking the time to review it. I appreciate it and will keep monitoring the PR so I can respond promptly to any feedback.

@hanjianqiao

Copy link
Copy Markdown
Collaborator

LGTM, thanks for the contribution! Merging shortly.

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.

in-tree build generated files need to be added to .gitignore

4 participants