reset.c: finish entire cmd_reset() whether or not pathspec is given
commit3bbf2f20f62ec6aa7998d9f7acc942ded6639870
authorMartin von Zweigbergk <martinvonz@gmail.com>
Tue, 15 Jan 2013 05:47:47 +0000 (14 21:47 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jan 2013 17:38:08 +0000 (15 09:38 -0800)
tree72c61979dcd473c8946403ad182d3a240f7bc976
parentbc41bf422e15209860bfc6c898dbd3cd89d5da34
reset.c: finish entire cmd_reset() whether or not pathspec is given

By not returning from inside the "if (pathspec)" block, we can let the
pathspec-aware and pathspec-less code share a bit more, making it
easier to make future changes that should affect both cases. This also
highlights the similarity between read_from_tree() and reset_index().

Signed-off-by: Martin von Zweigbergk <martinvonz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c