Skip to content

Skip dot-folders (e.g. .git) when scanning for projects to import#3860

Merged
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:skip-dot-folders-on-import
Apr 7, 2026
Merged

Skip dot-folders (e.g. .git) when scanning for projects to import#3860
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:skip-dot-folders-on-import

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 3, 2026

Adds a Skip folders starting with '.' checkbox (default: true) to both import wizards:

  • Smart Import (SmartImportRootWizardPage / SmartImportJob)
  • Import Existing Projects (WizardProjectsImportPage)

When enabled, directories like .git, .svn, .hg etc. are skipped during recursive project scanning, significantly improving import performance for repositories with large .git folders.

The setting is persisted in dialog settings and defaults to true for new installations.

Fixes #3858

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Test Results

   852 files  ± 0     852 suites  ±0   54m 35s ⏱️ - 2m 26s
 7 894 tests + 4   7 651 ✅ + 4  243 💤 ±0  0 ❌ ±0 
20 184 runs  +12  19 529 ✅ +12  655 💤 ±0  0 ❌ ±0 

Results for commit f427fad. ± Comparison against base commit ed75400.

♻️ This comment has been updated with latest results.

@vogella vogella marked this pull request as ready for review April 5, 2026 18:16
@merks
Copy link
Copy Markdown
Contributor

merks commented Apr 6, 2026

FYI I expect generally all builds will fail due to 502 errors from download.eclipse.org.

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 6, 2026

FYI I expect generally all builds will fail due to 502 errors from download.eclipse.org.

Thanks for the info.

Add a 'Skip folders starting with dot' checkbox (default: true) to both
the Smart Import wizard (SmartImportRootWizardPage) and the traditional
Import Existing Projects wizard (WizardProjectsImportPage).

When enabled, directories starting with '.' (such as .git, .svn, .hg)
are skipped during recursive project scanning, significantly improving
import performance for repositories with large .git folders.

The setting is persisted in dialog settings and defaults to true for
new installations.

Adds tests for both import wizards:

- ImportExistingProjectsWizardTest:
  - test24: Verifies .git folder projects are skipped with default setting
  - test25: Verifies .git folder projects are found when skip is disabled

- SmartImportTests:
  - testSmartImportSkipsDotFolders: Integration test verifying .git
    projects are not imported via the wizard
  - testSmartImportJobSkipsDotFoldersInProposals: Verifies import
    proposals filter out projects inside .git folders

The 'Skip dot folders' checkbox is a scanning option that affects which
folders are visited during project discovery, so it belongs before the
post-import option 'Close newly imported projects upon completion'.

Fixes eclipse-platform#3858
@vogella vogella force-pushed the skip-dot-folders-on-import branch from 5194c7b to f427fad Compare April 6, 2026 18:54
@vogella vogella merged commit 6be1015 into eclipse-platform:master Apr 7, 2026
18 checks passed
@vogella vogella deleted the skip-dot-folders-on-import branch April 7, 2026 05:40
@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 7, 2026

Sorry @merks missed the comment in the issue: There should always be a comma after ‘e.g.’

Follow-up PR coming

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.

Skip git folder when scanning for projects to import

2 participants