Skip to content

Instantly share code, notes, and snippets.

@kalabiyau
Created June 2, 2012 23:50
Show Gist options
  • Save kalabiyau/2860543 to your computer and use it in GitHub Desktop.
Save kalabiyau/2860543 to your computer and use it in GitHub Desktop.
--- no-trailing 2010-12-29 16:36:32.000000000 +0000
+++ updated 2010-12-29 16:38:24.000000000 +0000
@@ -1,4 +1,5 @@
file { "/path/to/filename":
owner => "root",
- group => "wheel"
+ group => "wheel",
+ mode => 755
}
On the other hand, if we leave the trailing comma at the end of the line the diff becomes smaller and the actual change becomes more obvious
file { "/path/to/filename":
owner => "root",
group => "wheel",
}
$ diff -u trailing updated
--- trailing 2010-12-29 16:39:16.000000000 +0000
+++ updated 2010-12-29 16:39:22.000000000 +0000
@@ -1,4 +1,5 @@
file { "/path/to/filename":
owner => "root",
group => "wheel",
+ mode => 755,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment