From: Martin von Zweigbergk Date: Tue, 15 Jan 2013 05:47:49 +0000 (-0800) Subject: reset $sha1 $pathspec: require $sha1 only to be treeish X-Git-Tag: v1.8.2-rc0~99^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2f328c3d2e88230a236e3d84d2bd6de59aea578d?ds=inline;hp=2f328c3d2e88230a236e3d84d2bd6de59aea578d reset $sha1 $pathspec: require $sha1 only to be treeish Resetting with paths does not update HEAD and there is nothing else that a commit should be needed for. Relax the argument parsing so only a tree is required. The sha1 is only passed to read_from_tree(), which already only requires a tree. The "rev" variable we pass to run_add_interactive() will resolve to a tree. This is fine since interactive_reset only needs the parameter to be a treeish and doesn't use it for display purposes. Signed-off-by: Martin von Zweigbergk Signed-off-by: Junio C Hamano ---