summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorMartin von Zweigbergk <martinvonz@gmail.com>2013-01-15 05:47:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-15 17:38:08 (GMT)
commit3bbf2f20f62ec6aa7998d9f7acc942ded6639870 (patch)
tree72c61979dcd473c8946403ad182d3a240f7bc976 /dir.c
parentbc41bf422e15209860bfc6c898dbd3cd89d5da34 (diff)
downloadgit-3bbf2f20f62ec6aa7998d9f7acc942ded6639870.zip
git-3bbf2f20f62ec6aa7998d9f7acc942ded6639870.tar.gz
git-3bbf2f20f62ec6aa7998d9f7acc942ded6639870.tar.bz2
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 'dir.c')
0 files changed, 0 insertions, 0 deletions