Re: [PATCH] diff: restrict pathspec limitations to diff b/f case only

2013-11-20 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > 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 state

[PATCH] diff: restrict pathspec limitations to diff b/f case only

2013-11-19 Thread Nguyễn Thái Ngọc Duy
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_PAT