add -A: only show pathless 'add -A' warning when changes exist outside cwd
commit9df84e94ed16dfaeb50350d7e8ec36eee3fc213e
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 19 Mar 2013 22:51:34 +0000 (19 15:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2013 18:34:22 +0000 (3 11:34 -0700)
treee692c3abed1a395ba7853a369ef7e4dbe8a142ec
parent71c7b0538f8f037e49a04f415a6fbf0bba2c85ad
add -A: only show pathless 'add -A' warning when changes exist outside cwd

In the spirit of the recent similar change for 'git add -u', avoid
pestering users that restrict their attention to a subdirectory and
will not be affected by the coming change in the behavior of pathless
'git add -A'.

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