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.

4 calls to drush_version_control_reserved_files()
drush_core_call_rsync in commands/core/rsync.core.inc
Make a direct call to rsync after the source and destination paths have been evaluated.
drush_core_find_project_path in commands/core/core.drush.inc
drush_pm_cvs in commands/pm/package_handler/cvs.inc
General CVS helper function.
pm_update_project in commands/pm/updatecode.pm.inc
Update one project -- a module, theme or Drupal core.

File

includes/drush.inc, line 2942
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',
    );
    $vcs = array_keys(drush_get_engines('version_control'));
    foreach ($vcs as $name) {
      drush_include_engine('version_control', $name);
      $class = 'drush_pm_version_control_' . $name;
      // For php < 5.3 we can't access a static method by referencing the class
      // using a variable.
      $version_control = new $class();
      $files = array_merge($files, $version_control->reserved_files());
    }
  }

  return $files;
}