mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-22 02:50:04 -05:00
Spacing changes
This commit is contained in:
@@ -458,19 +458,23 @@ SQL
|
||||
run dolt diff --cached
|
||||
[ $status -eq 0 ]
|
||||
[ "$output" = "" ]
|
||||
|
||||
dolt add test
|
||||
run dolt diff --cached
|
||||
[ $status -eq 0 ]
|
||||
[[ $output =~ "added table" ]] || false
|
||||
|
||||
dolt commit -m "First commit"
|
||||
dolt sql -q "insert into test values (0, 0, 0, 0, 0, 0)"
|
||||
run dolt diff
|
||||
[ $status -eq 0 ]
|
||||
|
||||
CORRECT_DIFF=$output
|
||||
dolt add test
|
||||
run dolt diff --cached
|
||||
[ $status -eq 0 ]
|
||||
[ "$output" = "$CORRECT_DIFF" ]
|
||||
|
||||
# Make sure it ignores changes to the working set that aren't staged
|
||||
dolt sql -q "create table test2 (pk int, c1 int, primary key(pk))"
|
||||
run dolt diff --cached
|
||||
|
||||
Reference in New Issue
Block a user