From 9354fefd0cb5e2bf04d1f2db89fb8e5730c8dc6f Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 20 Jun 2016 00:56:28 +0400 Subject: [PATCH] do not checkout branch when resetting a file --- plugins/c9.ide.terminal/link_handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.ide.terminal/link_handler.js b/plugins/c9.ide.terminal/link_handler.js index 4543a31f..23c25d39 100644 --- a/plugins/c9.ide.terminal/link_handler.js +++ b/plugins/c9.ide.terminal/link_handler.js @@ -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")