mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-27 00:51:39 -06:00
Add new dolt_status_ignored system table that extends dolt_status with an "ignored" column to show which unstaged tables match dolt_ignore patterns. This provides SQL equivalent of dolt status --ignored functionality. Implementation includes: - StatusIgnoredTable type with schema containing table_name, staged, status, and ignored columns - Registration in system table constants and generated table names lists - Helper function getStatusTableRootsProvider to eliminate duplicate switch case logic between StatusTableName and StatusIgnoredTableName in database.go - Shared getStatusRowsData function used by both dolt_status and dolt_status_ignored to collect status data from roots and working set - Unexported helper functions in status_ignored_table.go for ignore pattern checking: getIgnorePatterns, buildUnstagedTableNameSet, and checkIfIgnored - bats integration tests verifying behavior The ignored column is only set for unstaged tables that match patterns in dolt_ignore. Staged tables, constraint violations, merge conflicts, and schema conflicts always have ignored = 0. Refs: #5862