do not checkout branch when resetting a file

This commit is contained in:
nightwing 2016-06-20 00:56:28 +04:00
parent 5c2bed1c62
commit 9354fefd0c

View File

@ -107,7 +107,7 @@ define(function(require, exports, module) {
else if (e.value === "gitadd")
lastLink.editor.onPaste("git add " + lastLink.value + "\n");
else if (e.value === "gitcheckout")
lastLink.editor.onPaste("git checkout " + lastLink.value);
lastLink.editor.onPaste("git checkout -- " + lastLink.value);
else if (e.value === "gitdiff")
lastLink.editor.onPaste("git diff " + lastLink.value + "\n");
else if (e.value === "gitrm")