add: make warn_pathless_add() a no-op after first call
commit16d41d42184a4c82d2cd8c41e9eef9784cf437b1
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 19 Mar 2013 22:45:52 +0000 (19 15:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2013 18:34:22 +0000 (3 11:34 -0700)
treed3d0bd2e238b3b2aa68479bd742a663356bfc558
parentc9f35b8b5013c1aa5977c678b844757a1f61dd5f
add: make warn_pathless_add() a no-op after first call

Make warn_pathless_add() print its warning the first time it is called
and do nothing if called again.  This will make it easier to show the
warning on the fly when a relevant condition is detected without
risking showing it multiple times when multiple such conditions hold.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c