limit the check of the local tree to the index (staged but not committed files)