示例#1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $lastVersion = Context::get('version-persister')->getCurrentVersionTag();
     $noMerges = $input->getOption('exclude-merge-commits');
     if ($input->getOption('files')) {
         $output->writeln("Here is the list of files changed since <green>{$lastVersion}</green>:");
         $output->indent();
         $output->writeln(array_keys(Context::get('vcs')->getModifiedFilesSince($lastVersion)));
         return;
     }
     $output->writeln("Here is the list of changes since <green>{$lastVersion}</green>:");
     $output->indent();
     $output->writeln(Context::get('vcs')->getAllModificationsSince($lastVersion, false, $noMerges));
 }