mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-25 18:49:36 -06:00
Fixed tests + cleanup
This commit is contained in:
@@ -24,7 +24,7 @@ type StashRef struct {
|
||||
|
||||
var _ DoltRef = StashRef{}
|
||||
|
||||
// NewStashRef creates a reference to a stashes list. There cannot be more than one stashRef.
|
||||
// NewStashRef creates a reference to a stashes list.
|
||||
func NewStashRef(stashName string) StashRef {
|
||||
if IsRef(stashName) {
|
||||
prefix := PrefixForType(StashRefType)
|
||||
|
||||
@@ -96,11 +96,6 @@ func doDoltStash(ctx *sql.Context, args []string) (string, error) {
|
||||
case "pop":
|
||||
status, err = doStashPop(ctx, dbData, stashName, idx)
|
||||
case "drop":
|
||||
var idx int
|
||||
idx, err = parseStashIndex(apr)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
status, err = doStashDrop(ctx, dbData, stashName, idx)
|
||||
case "clear":
|
||||
if apr.NArg() > 2 { // Clear does not take extra arguments
|
||||
|
||||
@@ -7951,6 +7951,7 @@ var DoltSystemVariables = []queries.ScriptTest{
|
||||
{"dolt_log"},
|
||||
{"dolt_remote_branches"},
|
||||
{"dolt_remotes"},
|
||||
{"dolt_stashes"},
|
||||
{"dolt_status"},
|
||||
{"dolt_workspace_test"},
|
||||
{"test"},
|
||||
|
||||
Reference in New Issue
Block a user