Skip to content

Instantly share code, notes, and snippets.

@wchargin
Created October 21, 2018 04:18
Show Gist options
  • Save wchargin/e159cac9dcf3cc3b1efbd54f59e24e0b to your computer and use it in GitHub Desktop.
Save wchargin/e159cac9dcf3cc3b1efbd54f59e24e0b to your computer and use it in GitHub Desktop.
$ node ./bin/testContinuations.js sourcecred sourcecred MDEwOlJlcG9zaXRvcnkxMjAxNDU1NzA= /tmp/continuations.json /tmp/mirror.json
{"child":"0d38dde23a6de831315f3643a7d2bc15e8df7678","parent":"cb8ba0eaa1abc1f921e7165bb19e29b40723ce65","type":"UNKNOWN_PARENT_OID"}
{"child":"d152f48ce4c2ed1d046bf6ed4f139e7e393ea660","parent":"de7a8723963d9cd0437ef34f5942a071b850c0e7","type":"UNKNOWN_PARENT_OID"}
Different. Saving to disk...
$ diff -u <(jq . /tmp/continuations.json) <(jq . /tmp/mirror.json) |
> sed 's/\("message": \).*"\(,\?\)$/\1[snip]\2/'
--- /dev/fd/63 2018-10-20 21:16:51.014302321 -0700
+++ /dev/fd/62 2018-10-20 21:16:51.018302293 -0700
@@ -57725,6 +57725,21 @@
"message": [snip],
"url": "https://github.com/sourcecred/sourcecred/commit/cb1339a0a7142c268b7afcbd026eb6f52237b6f7"
},
+ "N\u0000sourcecred\u0000git\u0000COMMIT\u0000cb8ba0eaa1abc1f921e7165bb19e29b40723ce65\u0000": {
+ "address": {
+ "hash": "cb8ba0eaa1abc1f921e7165bb19e29b40723ce65",
+ "type": "COMMIT"
+ },
+ "authors": [
+ {
+ "login": "wchargin",
+ "subtype": "USER",
+ "type": "USERLIKE"
+ }
+ ],
+ "message": [snip],
+ "url": "https://github.com/sourcecred/sourcecred/commit/cb8ba0eaa1abc1f921e7165bb19e29b40723ce65"
+ },
"N\u0000sourcecred\u0000git\u0000COMMIT\u0000cd6c869d84c730e2b9d2a7ccbcace9c1ba5b7622\u0000": {
"address": {
"hash": "cd6c869d84c730e2b9d2a7ccbcace9c1ba5b7622",
@@ -58585,6 +58600,26 @@
"message": [snip],
"url": "https://github.com/sourcecred/sourcecred/commit/de5542de6a597c17fb06660e79e911885e9788d9"
},
+ "N\u0000sourcecred\u0000git\u0000COMMIT\u0000de7a8723963d9cd0437ef34f5942a071b850c0e7\u0000": {
+ "address": {
+ "hash": "de7a8723963d9cd0437ef34f5942a071b850c0e7",
+ "type": "COMMIT"
+ },
+ "authors": [
+ {
+ "login": "decentralion",
+ "subtype": "USER",
+ "type": "USERLIKE"
+ },
+ {
+ "login": "wchargin",
+ "subtype": "USER",
+ "type": "USERLIKE"
+ }
+ ],
+ "message": [snip],
+ "url": "https://github.com/sourcecred/sourcecred/commit/de7a8723963d9cd0437ef34f5942a071b850c0e7"
+ },
"N\u0000sourcecred\u0000git\u0000COMMIT\u0000deaba09d0003466693efbaeeeeff4b6fb01ca228\u0000": {
"address": {
"hash": "deaba09d0003466693efbaeeeeff4b6fb01ca228",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment