Comments on 2019-10-07 A tip with diffing (and committing) program structure changes

Difference between revision 2 and current revision

Summary: Yep, I tried to be comprehensive. :-)

No diff available.

$ diff -ub a b
--- a	2019-10-11 10:40:06.023072617 +0200
+++ b	2019-10-11 10:40:13.254971828 +0200
@@ -1,4 +1,6 @@
-module.exports = {
+module.exports = function(locale) {
+	if (locale === 'en') {
+		return {
 	hello: function hello(who) {
 		return `Hello ${who}!`;
 	},
@@ -6,4 +8,6 @@
 	bye: function bye(who) {
 		return `Bye, ${who}!`;
 	},
+		}
+	}
 }

– ruanda 2019-10-11 08:43 UTC


I didn’t see you mentioned -b already ;)

– ruanda 2019-10-11 08:45 UTC


Yep, I tried to be comprehensive. :-)

– Marcin Borkowski 2019-10-12 11:53 UTC