mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-15 02:52:55 -05:00
dolt_diff and dolt_status_ignored system tables shouldn't error when a table matches conflicting ignore rules.
This commit is contained in:
@@ -147,7 +147,8 @@ func newStatusIgnoredItr(ctx *sql.Context, st *StatusIgnoredTable) (*StatusIgnor
|
||||
if row.isStaged == byte(0) && row.status == newTableStatus && unstagedTableNames[row.tableName] {
|
||||
tblNameObj := doltdb.TableName{Name: row.tableName}
|
||||
result, err := ignorePatterns.IsTableNameIgnored(tblNameObj)
|
||||
if err != nil {
|
||||
// If a table name has conflicting ignore rules, don't ignore it.
|
||||
if err != nil && doltdb.AsDoltIgnoreInConflict(err) == nil {
|
||||
return nil, err
|
||||
}
|
||||
if result == doltdb.Ignore {
|
||||
|
||||
@@ -255,7 +255,8 @@ func (d *doltDiffWorkingSetRowItr) Next(ctx *sql.Context) (sql.Row, error) {
|
||||
if changeSet == "WORKING" && tableDelta.IsAdd() {
|
||||
tblName := doltdb.TableName{Name: tableDelta.CurName()}
|
||||
result, err := d.ignorePatterns.IsTableNameIgnored(tblName)
|
||||
if err != nil {
|
||||
// If a table name has conflicting ignore rules, don't ignore it.
|
||||
if err != nil && doltdb.AsDoltIgnoreInConflict(err) == nil {
|
||||
return nil, err
|
||||
}
|
||||
if result == doltdb.Ignore {
|
||||
|
||||
Reference in New Issue
Block a user