From a100a0186ae08f68c1a1f3abc451c7a0cd880575 Mon Sep 17 00:00:00 2001 From: Gengliang Wang Date: Mon, 21 Jun 2021 22:07:02 +0800 Subject: [PATCH] [SPARK-35842][INFRA] Ignore all .idea folders ### What changes were proposed in this pull request? After https://github.com/apache/spark/pull/32337, all the `.idea/` in submodules are treated as git difference again. For example, when I open the project `resource-managers/yarn/` with IntelliJ, the git status becomes ``` Untracked files: (use "git add ..." to include in what will be committed) resource-managers/yarn/.idea/ ``` The same issue happens on opening `sql/hive-thriftserver/` with IntelliJ. We should ignore all the ".idea" directories instead of the one under the root path. ### Why are the changes needed? Make it more friendly for developers who using IDEA for the development of submodules like yarn, hive-thriftserver, etc. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Just infra changes. Closes #32998 from gengliangwang/improveIgnore. Authored-by: Gengliang Wang Signed-off-by: Gengliang Wang --- .gitignore | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b94e1a1f5b..86493a7204 100644 --- a/.gitignore +++ b/.gitignore @@ -15,10 +15,10 @@ .ensime_cache/ .ensime_lucene .generated-mima* -# The star is required for further !.idea/ to work, see https://git-scm.com/docs/gitignore -.idea/* +# All the files under .idea/ are ignore. To add new files under ./idea that are not in the VCS yet, please use `git add -f` +.idea/ +# SPARK-35223: Add IssueNavigationLink to make IDEA support hyperlink on JIRA Ticket and GitHub PR on Git plugin. !.idea/vcs.xml -python/.idea .idea_modules/ .project .pydevproject