aboutsummaryrefslogtreecommitdiff
path: root/git-gui/lib/class.tcl
diff options
context:
space:
mode:
authorMartin von Zweigbergk <martinvonz@gmail.com>2013-01-14 21:47:47 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-15 09:38:08 -0800
commit3bbf2f20f62ec6aa7998d9f7acc942ded6639870 (patch)
tree72c61979dcd473c8946403ad182d3a240f7bc976 /git-gui/lib/class.tcl
parentbc41bf422e15209860bfc6c898dbd3cd89d5da34 (diff)
downloadgit-3bbf2f20f62ec6aa7998d9f7acc942ded6639870.tar.gz
git-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 'git-gui/lib/class.tcl')
0 files changed, 0 insertions, 0 deletions