Re: [PATCH 17/19] reset $sha1 $pathspec: require $sha1 only to be treeish

2013-01-09 Thread Junio C Hamano
Martin von Zweigbergk writes: > 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" v

[PATCH 17/19] reset $sha1 $pathspec: require $sha1 only to be treeish

2013-01-09 Thread Martin von Zweigbergk
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