In a question-and-answer session with reporters on Sunday , Gen. David Petraeus , the head of the Central Command , who oversees the wars in Iraq and Afghanistan , repeatedly referred to Karzai as Afghanistan 's commander-in-chief .