]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
use file_exists() to check if a file exists in the worktree
authorRené Scharfe <l.s.r@web.de>
Tue, 19 May 2015 21:44:23 +0000 (23:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2015 20:49:10 +0000 (13:49 -0700)
commitdbe44faadb87f88e092f3dac387f96070268137a
treec110408d6bae73334427aaec8010bdb2e754e69d
parentaaa7e0d7f8f003c0c8ab34f959083f6d191d44ca
use file_exists() to check if a file exists in the worktree

Call file_exists() instead of open-coding it.  That's shorter, simpler
and the intent becomes clearer.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
builtin/rm.c
merge-recursive.c
sha1_name.c
submodule.c