summaryrefslogtreecommitdiff
path: root/pathspec.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-08-10 02:29:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-03 21:59:43 (GMT)
commit42de4b169c5de9d3f22eb1f988aa5b69447951b2 (patch)
tree6d8e23e172ebec711698de49181e3ae9c0b46e89 /pathspec.h
parent3af05a6d0da3addbcc050f3b1a1ac379e6c4025c (diff)
downloadgit-42de4b169c5de9d3f22eb1f988aa5b69447951b2.zip
git-42de4b169c5de9d3f22eb1f988aa5b69447951b2.tar.gz
git-42de4b169c5de9d3f22eb1f988aa5b69447951b2.tar.bz2
mv: remove an "if" that's always true
This is inside an "else" block of "if (last - first < 1)", so we know that "last - first >= 1" when we come here. No need to check "last - first > 0". While at there, save "argc + last - first" to a variable to shorten the statements a bit. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pathspec.h')
0 files changed, 0 insertions, 0 deletions