bit icon indicating copy to clipboard operation
bit copied to clipboard

add undo-commit command

Open rustiever opened this issue 4 years ago • 3 comments

#64

rustiever avatar Oct 09 '21 11:10 rustiever

Hi @chriswalz, can you review and tell me what i'm missing in this PR

rustiever avatar Oct 11 '21 04:10 rustiever

Hi @rustiever nice job I think you're pretty close although I haven't tested your code.

Here is the key change. The api should be: bit fix undo-commit and right now it looks like the code is setup as bit undo-commit

In terms of changing the code anywhere you have undo-commit you'll want to change that to fix.

Suggestion tree for fix will look like this

st.Sub["fix"] = &complete.CompTree{
	Args: map[string]*complete.CompTree{
		"undo-commit": {Desc: "soft undos last commit if not pushed already"},
	},
}

chriswalz avatar Oct 22 '21 21:10 chriswalz