INNER CODE UNIT · Go

runScanAll

Bharath-code/git-scope · cmd/git-scope/main.go:378

func runScanAll() {
	home, err := os.UserHomeDir()
	if err != nil {
		log.Fatalf("Failed to get home directory: %v", err)
	}

	fmt.Println("🔍 Full System Scan — Finding all git repositories...")
	fmt.Printf("📁 Scanning from: %s\n\n", home)
	fmt.Println("⏳ This may take a while depending on your disk size...")
	fmt.Println()

	// Ignore common non-user directories (third-party tools, extensions, system)
	ignorePatterns := []string{
		// Build artifacts
		"node_modules", ".next", "dist", "build", "target", ".output",
		// Package managers
		".npm", ".yarn", ".pnpm", ".bun",
		// Language runtimes

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…