Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Removing timestamp lines from generated files #335

Merged
merged 1 commit into from

2 participants

@rchavik
Collaborator

This causes unnecessary diff chunks, and we should depend more on
the SCM instead of these values.

@rchavik rchavik Removing timestamp lines from generated files
This causes unnecessary diff chunks, and we should depend more on
the SCM instead of these values.
fa80be5
@markstory markstory merged commit 8dd9846 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 25, 2011
  1. @rchavik

    Removing timestamp lines from generated files

    rchavik authored
    This causes unnecessary diff chunks, and we should depend more on
    the SCM instead of these values.
This page is out of date. Refresh to see the latest.
View
3  lib/Cake/Console/Command/SchemaShell.php
@@ -218,8 +218,7 @@ public function dump() {
}
}
$db = ConnectionManager::getDataSource($this->Schema->connection);
- $contents = "#" . $Schema->name . " sql generated on: " . date('Y-m-d H:i:s') . " : " . time() . "\n\n";
- $contents .= $db->dropSchema($Schema) . "\n\n". $db->createSchema($Schema);
+ $contents = "\n\n" . $db->dropSchema($Schema) . "\n\n". $db->createSchema($Schema);
if ($write) {
if (strpos($write, '.sql') === false) {
View
2  lib/Cake/Console/Templates/default/classes/fixture.ctp
@@ -20,8 +20,6 @@
*/
?>
<?php echo '<?php' . "\n"; ?>
-/* <?php echo $model; ?> Fixture generated on: <?php echo date('Y-m-d H:i:s') . " : ". time(); ?> */
-
/**
* <?php echo $model; ?>Fixture
*
View
1  lib/Cake/Console/Templates/default/classes/test.ctp
@@ -18,7 +18,6 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
echo "<?php\n";
-echo "/* ". $className ." Test cases generated on: " . date('Y-m-d H:i:s') . " : ". time() . "*/\n";
?>
App::uses('<?php echo $fullClassName; ?>', '<?php echo $realType; ?>');
View
2  lib/Cake/Model/CakeSchema.php
@@ -379,7 +379,7 @@ public function write($object, $options = array()) {
$out .= "}\n";
$file = new SplFileObject($path . DS . $file, 'w+');
- $content = "<?php \n/* {$name} schema generated on: " . date('Y-m-d H:i:s') . " : ". time() . "*/\n{$out}?>";
+ $content = "<?php\n{$out}";
if ($file->fwrite($content)) {
return $content;
}
Something went wrong with that request. Please try again.