Repository navigation
gitignore: ignore in-tree build generated files - #1388
Conversation
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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✅ Files skipped from review due to trivial changes (6)
📝 WalkthroughWalkthroughAdded ChangesGenerated artifact ignores
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
78a3c98 to
ad8c916
Compare
|
Thanks for continuous contribution to IvorySQL! Will review this patch in next week. |
ad8c916 to
391c351
Compare
|
@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. |
|
LGTM, thanks for the contribution! Merging shortly. |
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
.gitignorefiles with anchored entries, placing each generated file next to its non-Oracle sibling. The ten files reported in the issue are now ignored:.gitignoresrc/bin/psql/ora_psqlscanslash.csrc/bin/psql/.gitignore/psqlscanslash.csrc/bin/psql/psqlplusparse.csrc/bin/psql/.gitignoresrc/bin/psql/psqlplusparse.hsrc/bin/psql/.gitignoresrc/bin/psql/psqlplusscan.csrc/bin/psql/.gitignoresrc/fe_utils/ora_keywords.csrc/fe_utils/.gitignore/psqlscan.csrc/fe_utils/ora_kwlist_d.hsrc/fe_utils/.gitignore/psqlscan.csrc/include/catalog/postgres_oracle.bkisrc/include/catalog/.gitignore/postgres.bkisrc/oracle_fe_utils/ora_psqlscan.csrc/oracle_fe_utils/.gitignore(new)src/test/regress/ora_pg_regresssrc/test/regress/.gitignore/pg_regresscontrib/ivorysql_ora/ivorysql_ora--1.0.sqlcontrib/ivorysql_ora/.gitignore(new)Verification
After the change,
git statusreports only the six.gitignorechanges and no longer lists the generated files. Confirmed withgit check-ignore -vthat each generated file is matched by the rule added in its directory:Summary by CodeRabbit