diff: restrict pathspec limitations to diff b/f case only
commit887c6c18ba84da8d722b1528fe8cdde65d9f9860
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 20 Nov 2013 01:26:41 +0000 (20 08:26 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Nov 2013 23:04:51 +0000 (20 15:04 -0800)
tree7e8ff8c29391b7b89d51fc7b1a3ddfb13d987d47
parentc8556c6213cf6dca63f29f98ad9d074f6c5f8233
diff: restrict pathspec limitations to diff b/f case only

builtin_diff_b_f() needs a path, not pathspec. Other modes in diff
can deal with pathspec just fine. But because of the current
GUARD_PATHSPEC() location, other modes also reject :(glob) and
:(icase).

Move GUARD_PATHSPEC(), and the "path" assignment statement, which is
the reason of this GUARD_PATHSPEC(), inside builtin_diff_b_f().

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff.c
t/t6131-pathspec-icase.sh