Skip to content

Instantly share code, notes, and snippets.

@wscott
Created June 16, 2016 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wscott/c403526ca19a210c13ad649136c15608 to your computer and use it in GitHub Desktop.
Save wscott/c403526ca19a210c13ad649136c15608 to your computer and use it in GitHub Desktop.
$ diff -u a b
--- a 2016-06-16 14:12:21.733208187 -0400
+++ b 2016-06-16 14:12:17.549184914 -0400
@@ -1,6 +1,10 @@
def finalize(values)
values.each do |v|
+ v.prepare
+ end
+
+ values.each do |v|
v.finalize
end
end
$ bk ndiff -u a b
--- a 2016-06-16 14:12:21 -04:00
+++ b 2016-06-16 14:12:17 -04:00
@@ -1,5 +1,9 @@
def finalize(values)
+ values.each do |v|
+ v.prepare
+ end
+
values.each do |v|
v.finalize
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment