diff options
author | Martin von Zweigbergk <martinvonz@gmail.com> | 2013-01-14 21:47:49 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-15 09:38:08 -0800 |
commit | 2f328c3d2e88230a236e3d84d2bd6de59aea578d (patch) | |
tree | a0165cd060114a602a683432d2df9ff49d610ebc /t/t8005 | |
parent | 7637df131ec9939b737ca284874478cb5c899348 (diff) | |
download | git-2f328c3d2e88230a236e3d84d2bd6de59aea578d.tar.gz |
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 <martinvonz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t8005')
0 files changed, 0 insertions, 0 deletions