function drush_version_control_reserved_files

8.0.x drush.inc drush_version_control_reserved_files()
6.x drush.inc drush_version_control_reserved_files()
7.x drush.inc drush_version_control_reserved_files()
4.x drush.inc drush_version_control_reserved_files()
5.x drush.inc drush_version_control_reserved_files()
master drush.inc drush_version_control_reserved_files()

Return a list of VCSs reserved files and directories.

3 calls to drush_version_control_reserved_files()
drush_pm_download in commands/pm/download.pm.inc
Command callback. Download Drupal core or any project.
pm_update_project in commands/pm/updatecode.pm.inc
Update one project -- a module, theme or Drupal core.
_drush_build_rsync_options in commands/core/rsync.core.inc

File

includes/drush.inc, line 1672
The drush API implementation and helpers.

Code

function drush_version_control_reserved_files() {
  static $files = FALSE;

  if (!$files) {
    // Also support VCSs that are not drush vc engines.
    $files = array(
      '.git',
      '.gitignore',
      '.hg',
      '.hgignore',
      '.hgrags',
    );
    $engine_info = drush_get_engines('version_control');
    $vcs = array_keys($engine_info['engines']);
    foreach ($vcs as $name) {
      $version_control = drush_include_engine('version_control', $name);
      $files = array_merge($files, $version_control->reserved_files());
    }
  }

  return $files;
}