diff options
author | Martin von Zweigbergk <martinvonz@gmail.com> | 2013-01-14 21:47:47 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-15 09:38:08 -0800 |
commit | 3bbf2f20f62ec6aa7998d9f7acc942ded6639870 (patch) | |
tree | 72c61979dcd473c8946403ad182d3a240f7bc976 /patch-delta.c | |
parent | reset [--mixed]: only write index file once (diff) | |
download | tgif-3bbf2f20f62ec6aa7998d9f7acc942ded6639870.tar.xz |
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>
Diffstat (limited to 'patch-delta.c')
0 files changed, 0 insertions, 0 deletions