]> git.ipfire.org Git - thirdparty/git.git/commit - setup.c
check_filename(): handle ":^" path magic
authorJeff King <peff@peff.net>
Fri, 26 May 2017 19:08:39 +0000 (15:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 May 2017 02:36:56 +0000 (11:36 +0900)
commit42471bcee44e87669eb17f9fa13c8041a0fc35a1
tree3196bc85d53e27c7c66fea8f5ab85db54fcfdd1f
parentd51c6ee0d4bbeaf28bcd6c5f1681d208ee75763d
check_filename(): handle ":^" path magic

We special-case "git log :/foo" to work when "foo" exists in
the working tree. But :^ (and its alias :!) do not get the
same treatment, requiring the user to supply a
disambiguating "--". Let's make them work without requiring
the user to type the "--".

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
t/t4208-log-magic-pathspec.sh