checking whether I can commit