Skip to content

Instantly share code, notes, and snippets.

@pscheit
Created June 17, 2013 08:17
Show Gist options
  • Select an option

  • Save pscheit/5795394 to your computer and use it in GitHub Desktop.

Select an option

Save pscheit/5795394 to your computer and use it in GitHub Desktop.

Revisions

  1. pscheit created this gist Jun 17, 2013.
    13 changes: 13 additions & 0 deletions gistfile1.diff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    diff --git "a/C:\\Users\\PHILIP~1\\AppData\\Local\\Temp\\TortoiseGit\\Fil37B7.tmp\\File-21c8cf5-left.php" "b/D:\\www\\php-refactoring-browser\\src\\main\\QafooLabs\\Refactoring\\Domain\\Model\\File.php"
    index d63e258..52ff6ca 100644
    --- "a/C:\\Users\\PHILIP~1\\AppData\\Local\\Temp\\TortoiseGit\\Fil37B7.tmp\\File-21c8cf5-left.php"
    +++ "b/D:\\www\\php-refactoring-browser\\src\\main\\QafooLabs\\Refactoring\\Domain\\Model\\File.php"
    @@ -35,7 +35,7 @@ class File
    }

    $code = file_get_contents($path);
    - $relativePath = ltrim(str_replace($workingDirectory, "", $path), "/");
    + $relativePath = ltrim(str_replace($workingDirectory, "", $path), "/\\");

    return new self($relativePath, $code);
    }