Skip to content

Instantly share code, notes, and snippets.

@enjalot
Created March 14, 2013 05:13
Show Gist options
  • Save enjalot/5158988 to your computer and use it in GitHub Desktop.
Save enjalot/5158988 to your computer and use it in GitHub Desktop.
Tributary inlet
{
"name" : "/Users/phoenix/data/sources/git-sample/.git [ 1.0]",
"tags" : null,
"branches" :
[
{
"name" : "HEAD",
"ref" : "HEAD",
"target" : "43853dc554439674080dd916ddfc82da34809b78",
"symbolic" : true
},
{
"name" : "1.0",
"ref" : "refs/heads/1.0",
"target" : "43853dc554439674080dd916ddfc82da34809b78",
"symbolic" : false
},
{
"name" : "master",
"ref" : "refs/heads/master",
"target" : "73d134360e832282471ce962b35c32e849fe6904",
"symbolic" : false
},
{
"name" : "remotes/origin/1.0",
"ref" : "refs/remotes/origin/1.0",
"target" : "43853dc554439674080dd916ddfc82da34809b78",
"symbolic" : false
},
{
"name" : "remotes/origin/HEAD",
"ref" : "refs/remotes/origin/HEAD",
"target" : "a50bbdc1883773112459983cd500c54e42a8bf1f",
"symbolic" : true
},
{
"name" : "remotes/origin/feature-mea",
"ref" : "refs/remotes/origin/feature-mea",
"target" : "9dd61f712c9c5938c127c98d5e5f830b02ec6c4d",
"symbolic" : false
},
{
"name" : "remotes/origin/master",
"ref" : "refs/remotes/origin/master",
"target" : "a50bbdc1883773112459983cd500c54e42a8bf1f",
"symbolic" : false
}
],
"commits" :
[
{
"message" : "dummy message",
"id" : "81541c827995c961c5359929c4e96e522c332dab",
"date" : 1357921519000,
"position" : 71,
"children" :
[
{
"id" : "f7c343ee836af289b05ff41b0a6c025214a5af49",
"position" : 70,
"lane" : 0
},
{
"id" : "2fda5d1fb073e8e7a566f82f7137540537f676c2",
"position" : 68,
"lane" : 2
}
],
"childCount" : 2,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 0,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "f7c343ee836af289b05ff41b0a6c025214a5af49",
"date" : 1357923670000,
"position" : 70,
"children" :
[
{
"id" : "233ce90e4e1f9dca70f2fc8a4ed626e67914bb96",
"position" : 69,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "233ce90e4e1f9dca70f2fc8a4ed626e67914bb96",
"date" : 1357924769000,
"position" : 69,
"children" :
[
{
"id" : "d9468207841b812f9091d35dfc4f82020b38a0b2",
"position" : 65,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "2fda5d1fb073e8e7a566f82f7137540537f676c2",
"date" : 1358078401000,
"position" : 68,
"children" :
[
{
"id" : "80a59dab78b6c093bf9ff61a99b903637bb7fcb6",
"position" : 67,
"lane" : 2
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 2,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "80a59dab78b6c093bf9ff61a99b903637bb7fcb6",
"date" : 1358079164000,
"position" : 67,
"children" :
[
{
"id" : "73d134360e832282471ce962b35c32e849fe6904",
"position" : 66,
"lane" : 2
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 2,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "73d134360e832282471ce962b35c32e849fe6904",
"date" : 1358079229000,
"position" : 66,
"children" :
[
{
"id" : "d9468207841b812f9091d35dfc4f82020b38a0b2",
"position" : 65,
"lane" : 0
},
{
"id" : "a50bbdc1883773112459983cd500c54e42a8bf1f",
"position" : 58,
"lane" : 1
}
],
"childCount" : 2,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 2,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "d9468207841b812f9091d35dfc4f82020b38a0b2",
"date" : 1358079794000,
"position" : 65,
"children" :
[
{
"id" : "cb64854338a850489abd1bcdf89bfb2aa1396fb7",
"position" : 64,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 2,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "cb64854338a850489abd1bcdf89bfb2aa1396fb7",
"date" : 1358080201000,
"position" : 64,
"children" :
[
{
"id" : "eab15146ca4923c00581be7897abe41fc5282845",
"position" : 63,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "eab15146ca4923c00581be7897abe41fc5282845",
"date" : 1358156357000,
"position" : 63,
"children" :
[
{
"id" : "ff7d6261a242512967ecece135f8978e5daf238c",
"position" : 62,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "ff7d6261a242512967ecece135f8978e5daf238c",
"date" : 1358167202000,
"position" : 62,
"children" :
[
{
"id" : "e2e11fd20cab6df10e88f5af3ad08d7bcd465716",
"position" : 61,
"lane" : 1
},
{
"id" : "878d88628a6646db04a8b820b7a68fc10e489e77",
"position" : 60,
"lane" : 0
}
],
"childCount" : 2,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "e2e11fd20cab6df10e88f5af3ad08d7bcd465716",
"date" : 1358170742000,
"position" : 61,
"children" :
[
{
"id" : "e140bf9341341b55bf58d9ec551fa6eb3ab216db",
"position" : 59,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "878d88628a6646db04a8b820b7a68fc10e489e77",
"date" : 1358173639000,
"position" : 60,
"children" :
[
{
"id" : "e140bf9341341b55bf58d9ec551fa6eb3ab216db",
"position" : 59,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "e140bf9341341b55bf58d9ec551fa6eb3ab216db",
"date" : 1358173642000,
"position" : 59,
"children" :
[
{
"id" : "a4d3a36e580eebceccecf45fcb173b6b4a3ad185",
"position" : 57,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 2,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "a50bbdc1883773112459983cd500c54e42a8bf1f",
"date" : 1358359851000,
"position" : 58,
"children" :
[
],
"childCount" : 0,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "a4d3a36e580eebceccecf45fcb173b6b4a3ad185",
"date" : 1358360132000,
"position" : 57,
"children" :
[
{
"id" : "8ff9a2bd7b1a59332145db37c34115296617296b",
"position" : 56,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "8ff9a2bd7b1a59332145db37c34115296617296b",
"date" : 1358413352000,
"position" : 56,
"children" :
[
{
"id" : "c204328db6df2b7fd8047f0b0718f6a909818a9b",
"position" : 55,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "c204328db6df2b7fd8047f0b0718f6a909818a9b",
"date" : 1358415029000,
"position" : 55,
"children" :
[
{
"id" : "b9b4212988c85cab6af1c634a502760cdfcb7e82",
"position" : 54,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "b9b4212988c85cab6af1c634a502760cdfcb7e82",
"date" : 1358433208000,
"position" : 54,
"children" :
[
{
"id" : "9318ddabf4423d46ae0c397a6374a4108a56342a",
"position" : 53,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "9318ddabf4423d46ae0c397a6374a4108a56342a",
"date" : 1359390999000,
"position" : 53,
"children" :
[
{
"id" : "02648920e64d23db567188de4615f259e71c4775",
"position" : 52,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "02648920e64d23db567188de4615f259e71c4775",
"date" : 1359391030000,
"position" : 52,
"children" :
[
{
"id" : "d1a2a3d6b83837e177a38766e46da7fa1d4623d8",
"position" : 51,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "d1a2a3d6b83837e177a38766e46da7fa1d4623d8",
"date" : 1359391047000,
"position" : 51,
"children" :
[
{
"id" : "473fd03763f062c2517d5f2971ea5e920165db6f",
"position" : 50,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "473fd03763f062c2517d5f2971ea5e920165db6f",
"date" : 1359542296000,
"position" : 50,
"children" :
[
{
"id" : "c0b26110257a2872f2687e95753d2aef1ca65937",
"position" : 49,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "c0b26110257a2872f2687e95753d2aef1ca65937",
"date" : 1360167342000,
"position" : 49,
"children" :
[
{
"id" : "4912d2fa992f948d7443e4afdbb1663c5756f779",
"position" : 48,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "4912d2fa992f948d7443e4afdbb1663c5756f779",
"date" : 1360773159000,
"position" : 48,
"children" :
[
{
"id" : "0918c0236d2e6728223a1e3d7f26b528ba92de24",
"position" : 47,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "0918c0236d2e6728223a1e3d7f26b528ba92de24",
"date" : 1361182318000,
"position" : 47,
"children" :
[
{
"id" : "03c92c3cbef3f7ac761b3a4843441ec2a3b15f80",
"position" : 46,
"lane" : 1
},
{
"id" : "be7046157122f4839bc0acde711fb28b57dba881",
"position" : 45,
"lane" : 0
}
],
"childCount" : 2,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "03c92c3cbef3f7ac761b3a4843441ec2a3b15f80",
"date" : 1361291359000,
"position" : 46,
"children" :
[
{
"id" : "38bdfb3c16209d00abce10ba86adfcf58349bfa0",
"position" : 43,
"lane" : 2
},
{
"id" : "b41e4b0255e16f1931ee8e3d0ad9403dfd81606e",
"position" : 40,
"lane" : 1
}
],
"childCount" : 2,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "be7046157122f4839bc0acde711fb28b57dba881",
"date" : 1361294082000,
"position" : 45,
"children" :
[
{
"id" : "dfbe9932f3102626684c11c4349fee2aeda038c6",
"position" : 44,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "dfbe9932f3102626684c11c4349fee2aeda038c6",
"date" : 1361348549000,
"position" : 44,
"children" :
[
{
"id" : "38bdfb3c16209d00abce10ba86adfcf58349bfa0",
"position" : 43,
"lane" : 2
},
{
"id" : "50a5a6a622b94f6bc3da640569ee1a45f9748643",
"position" : 42,
"lane" : 0
}
],
"childCount" : 2,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "38bdfb3c16209d00abce10ba86adfcf58349bfa0",
"date" : 1361348611000,
"position" : 43,
"children" :
[
{
"id" : "76d31fe4070253b862511d74c85187d759e90d2b",
"position" : 37,
"lane" : 2
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 2,
"parentCount" : 2,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "50a5a6a622b94f6bc3da640569ee1a45f9748643",
"date" : 1361373900000,
"position" : 42,
"children" :
[
{
"id" : "a62d3f0aee5957cab9a550c32fe8b80aa4f18ec1",
"position" : 41,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "a62d3f0aee5957cab9a550c32fe8b80aa4f18ec1",
"date" : 1361377038000,
"position" : 41,
"children" :
[
{
"id" : "3956d907bc01e35a054548ff62f4be57d9316669",
"position" : 39,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "b41e4b0255e16f1931ee8e3d0ad9403dfd81606e",
"date" : 1361460427000,
"position" : 40,
"children" :
[
{
"id" : "9b3f21f5268c27dd31e48f698d390215f4b5be7c",
"position" : 38,
"lane" : 1
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "3956d907bc01e35a054548ff62f4be57d9316669",
"date" : 1361551827000,
"position" : 39,
"children" :
[
{
"id" : "5ec411f80eab62294548fd770dcd0d373790841f",
"position" : 36,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "9b3f21f5268c27dd31e48f698d390215f4b5be7c",
"date" : 1361554321000,
"position" : 38,
"children" :
[
{
"id" : "76d31fe4070253b862511d74c85187d759e90d2b",
"position" : 37,
"lane" : 2
},
{
"id" : "0cf7248089616d570284c6677d5ac9cb0b675f74",
"position" : 34,
"lane" : 1
}
],
"childCount" : 2,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "76d31fe4070253b862511d74c85187d759e90d2b",
"date" : 1361554372000,
"position" : 37,
"children" :
[
{
"id" : "516e42d011e52ea2cf3165cff43827dd8be73b3c",
"position" : 33,
"lane" : 1
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 2,
"parentCount" : 2,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "5ec411f80eab62294548fd770dcd0d373790841f",
"date" : 1361780101000,
"position" : 36,
"children" :
[
{
"id" : "8313242794074c644450b81af8463e2eee5761e3",
"position" : 35,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "8313242794074c644450b81af8463e2eee5761e3",
"date" : 1361780193000,
"position" : 35,
"children" :
[
{
"id" : "e5b8ce5adcb4e3cbe91aa6cc9c6d45c72f4b578a",
"position" : 32,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "0cf7248089616d570284c6677d5ac9cb0b675f74",
"date" : 1361785346000,
"position" : 34,
"children" :
[
{
"id" : "516e42d011e52ea2cf3165cff43827dd8be73b3c",
"position" : 33,
"lane" : 1
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "516e42d011e52ea2cf3165cff43827dd8be73b3c",
"date" : 1361785764000,
"position" : 33,
"children" :
[
{
"id" : "9dd61f712c9c5938c127c98d5e5f830b02ec6c4d",
"position" : 28,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 2,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "e5b8ce5adcb4e3cbe91aa6cc9c6d45c72f4b578a",
"date" : 1361789854000,
"position" : 32,
"children" :
[
{
"id" : "9c40a2634afee5f984a68654dc9e44f851bffc42",
"position" : 31,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "9c40a2634afee5f984a68654dc9e44f851bffc42",
"date" : 1361790021000,
"position" : 31,
"children" :
[
{
"id" : "c220da86bf8f6dd2ad8dddfcb2faebb8d0fdf937",
"position" : 30,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "c220da86bf8f6dd2ad8dddfcb2faebb8d0fdf937",
"date" : 1361790022000,
"position" : 30,
"children" :
[
{
"id" : "120b5908a9e7aaff8e482ee470e625675bed1fc0",
"position" : 29,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "120b5908a9e7aaff8e482ee470e625675bed1fc0",
"date" : 1361790022000,
"position" : 29,
"children" :
[
{
"id" : "9dd61f712c9c5938c127c98d5e5f830b02ec6c4d",
"position" : 28,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "9dd61f712c9c5938c127c98d5e5f830b02ec6c4d",
"date" : 1361790255000,
"position" : 28,
"children" :
[
{
"id" : "686102e12d4e7069d1669c65d08c0a7d4b3ee858",
"position" : 27,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 2,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "686102e12d4e7069d1669c65d08c0a7d4b3ee858",
"date" : 1361790424000,
"position" : 27,
"children" :
[
{
"id" : "3ce3bbf46b957fa7beddf9d8ef33641f60454bf4",
"position" : 26,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "3ce3bbf46b957fa7beddf9d8ef33641f60454bf4",
"date" : 1361790528000,
"position" : 26,
"children" :
[
{
"id" : "806e25530d0ca953e5ad34dd2c5709524caadc8e",
"position" : 25,
"lane" : 1
},
{
"id" : "7d97b8a723e4a84b05c3b176469a812f5350b74e",
"position" : 24,
"lane" : 0
}
],
"childCount" : 2,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "806e25530d0ca953e5ad34dd2c5709524caadc8e",
"date" : 1361797746000,
"position" : 25,
"children" :
[
{
"id" : "b8743f91b02387f1bac3189226a9cc1f251511ab",
"position" : 23,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 1,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "7d97b8a723e4a84b05c3b176469a812f5350b74e",
"date" : 1361799930000,
"position" : 24,
"children" :
[
{
"id" : "b8743f91b02387f1bac3189226a9cc1f251511ab",
"position" : 23,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "b8743f91b02387f1bac3189226a9cc1f251511ab",
"date" : 1361799945000,
"position" : 23,
"children" :
[
{
"id" : "d32358de27f50b0e9a3f01af6e9fbdc6218f1aad",
"position" : 22,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 2,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "d32358de27f50b0e9a3f01af6e9fbdc6218f1aad",
"date" : 1361800000000,
"position" : 22,
"children" :
[
{
"id" : "9642eeaf4545f01189d24df13cfdbfc49bffb7e4",
"position" : 21,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "9642eeaf4545f01189d24df13cfdbfc49bffb7e4",
"date" : 1361800126000,
"position" : 21,
"children" :
[
{
"id" : "62438b3fb9b7a95ce99d82dd95b02ca410fa7199",
"position" : 20,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "62438b3fb9b7a95ce99d82dd95b02ca410fa7199",
"date" : 1361800196000,
"position" : 20,
"children" :
[
{
"id" : "3410fc53114e8190c59526249720d5e5e201b755",
"position" : 19,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "3410fc53114e8190c59526249720d5e5e201b755",
"date" : 1361800361000,
"position" : 19,
"children" :
[
{
"id" : "d4fa6a65af1b716717ef16660945be7c0dd98188",
"position" : 18,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "d4fa6a65af1b716717ef16660945be7c0dd98188",
"date" : 1361804222000,
"position" : 18,
"children" :
[
{
"id" : "d4a4dfb2376ec7e5fbc667f53c3c8a1837070426",
"position" : 17,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "d4a4dfb2376ec7e5fbc667f53c3c8a1837070426",
"date" : 1361804485000,
"position" : 17,
"children" :
[
{
"id" : "9ff9f9d3732cb5c42a3c26b4e40c66625b8f376a",
"position" : 16,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "9ff9f9d3732cb5c42a3c26b4e40c66625b8f376a",
"date" : 1361957583000,
"position" : 16,
"children" :
[
{
"id" : "12bb63c8df62a2e35b77e2c84116cf96ed8dacb0",
"position" : 15,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "12bb63c8df62a2e35b77e2c84116cf96ed8dacb0",
"date" : 1361959090000,
"position" : 15,
"children" :
[
{
"id" : "727e43572ffd491030c7bf07286c6a492cfa2acc",
"position" : 14,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "727e43572ffd491030c7bf07286c6a492cfa2acc",
"date" : 1361963913000,
"position" : 14,
"children" :
[
{
"id" : "a56578ba5d15710e8b8d2ad60192c030000b9ecf",
"position" : 13,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "a56578ba5d15710e8b8d2ad60192c030000b9ecf",
"date" : 1361976169000,
"position" : 13,
"children" :
[
{
"id" : "5e4771dbd6249fd9af42be0d033fd55c78ae854b",
"position" : 12,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "5e4771dbd6249fd9af42be0d033fd55c78ae854b",
"date" : 1361980903000,
"position" : 12,
"children" :
[
{
"id" : "00504b7a17aca8ebff038221805e6297e54b3695",
"position" : 11,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "00504b7a17aca8ebff038221805e6297e54b3695",
"date" : 1361985286000,
"position" : 11,
"children" :
[
{
"id" : "72769b4d609a37550e9baaabdb6c71bbcca59624",
"position" : 10,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "72769b4d609a37550e9baaabdb6c71bbcca59624",
"date" : 1362040254000,
"position" : 10,
"children" :
[
{
"id" : "d48bf3b59219f7466907b70e98ea4f4e9bf6503f",
"position" : 9,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "d48bf3b59219f7466907b70e98ea4f4e9bf6503f",
"date" : 1362041040000,
"position" : 9,
"children" :
[
{
"id" : "66183dcd326923889f02889da501270f0138164c",
"position" : 8,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "66183dcd326923889f02889da501270f0138164c",
"date" : 1362043911000,
"position" : 8,
"children" :
[
{
"id" : "5e25deee146a391da8707c54f4b141647ba90dfb",
"position" : 7,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "5e25deee146a391da8707c54f4b141647ba90dfb",
"date" : 1362045740000,
"position" : 7,
"children" :
[
{
"id" : "f2da9364f54f625bf2fd9cd20c7be87bc1e58ed0",
"position" : 6,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "f2da9364f54f625bf2fd9cd20c7be87bc1e58ed0",
"date" : 1362068818000,
"position" : 6,
"children" :
[
{
"id" : "11340e40f7b8b51ff70f06d2f28954cda54fdc8b",
"position" : 5,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "11340e40f7b8b51ff70f06d2f28954cda54fdc8b",
"date" : 1362149081000,
"position" : 5,
"children" :
[
{
"id" : "90749e7a76c1cfba25ba049b3f293f21e30e8ee7",
"position" : 4,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "90749e7a76c1cfba25ba049b3f293f21e30e8ee7",
"date" : 1362149519000,
"position" : 4,
"children" :
[
{
"id" : "c95306891203226b804a6711d82b84b3015635a2",
"position" : 3,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "c95306891203226b804a6711d82b84b3015635a2",
"date" : 1362149699000,
"position" : 3,
"children" :
[
{
"id" : "bb0ff4095a2d1df6c1e45b6606cb8eec7ae5201c",
"position" : 2,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "bb0ff4095a2d1df6c1e45b6606cb8eec7ae5201c",
"date" : 1362149777000,
"position" : 2,
"children" :
[
{
"id" : "1df5554882a943195940e2b27d7ea0cccc4af504",
"position" : 1,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "1df5554882a943195940e2b27d7ea0cccc4af504",
"date" : 1362155675000,
"position" : 1,
"children" :
[
{
"id" : "43853dc554439674080dd916ddfc82da34809b78",
"position" : 0,
"lane" : 0
}
],
"childCount" : 1,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
},
{
"message" : "dummy message",
"id" : "43853dc554439674080dd916ddfc82da34809b78",
"date" : 1362155813000,
"position" : 0,
"children" :
[
],
"childCount" : 0,
"parents" :
[
],
"shortMessage" : "dummy message",
"lane" : 0,
"parentCount" : 1,
"authorName" : "dummy",
"authorEmail" : "dummy@dummy.com",
"comitterName" : "dummy",
"comitterEmail" : "dummy@dummy.com"
}
]
}
{"description":"Tributary inlet","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"commits.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"style.css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/2g8U9mO.png"}
//adapting http://jsfiddle.net/dark_phoenix/SnsXT/3/ by Frederic Esnault
var min=0, max=0, previousMin=0, previousMax=0, commitPadding=4
,width=1300
//,height=846
,height = tributary.sh
,margin=40,padding=100,bgcolor="#FFFFFF",
ypan=0;
// scalers - scales the commits dates base on the idea that they are displayed vertically. So the scale range uses the height as a max.
// X is scaled by the number of branches (from 1 to 10) - TODO : make it dynamic from the branch count in the data.
var x = d3.scale.linear()
.domain([0,25])
.range([margin,width-margin]);
// Y is scaled by the commit date
var maxPaddingHeight = 0;
var minPaddingHeight = 0;
var originalTranslate = 0;
var currentPan = 0;
var y = d3.scale.linear()
.domain([min, max])
.range([margin, height-margin]);
var svg = d3.select("svg")
var svgGroup = svg.insert("g").attr("class", "log");
var linksGroup = svgGroup.insert("g").attr("class", "links-group");
var commitsGroup = svgGroup.insert("g").attr("class", "commits-group");
var origin;
var repository;
var currentCommits;
var originalCommits;
var delay = 500;
var line = d3.svg.diagonal().projection( function (d) { return [d.x, d.y] } );
var initline = d3.svg.diagonal().projection( function (d) {
if (d.y < min) {
return [d.x, margin];
} else if (d.y > max) {
return [d.x, height-margin];
}
return [d.x, margin];}
);
function key(d) {
return d.id;
}
/////////////////////////
var repository = tributary.commits;
originalCommits = repository.commits;
currentCommits = originalCommits;
max = d3.max(currentCommits, function(d) { return d.position;});
min = d3.min(currentCommits, function(d) { return d.position;});
maxPaddingHeight = (((height-margin)*commitPadding)-height)+2*margin;
minPaddingHeight = 0;
y.domain([min, max])
//.range([margin, (height-margin)]);
redraw(currentCommits);
/////////////////////////
var viewHeight = 394;
var rect = svg.append("rect")
.attr({
x: 20,
y: 0,
width: 200,
height: viewHeight,
fill: "none",
stroke: "#000"
});
var viewScale = d3.scale.linear()
.domain([1, 0])
.range([0, y.range()[1] - viewHeight + margin]);
var zoom = d3.behavior.zoom()
.on("zoom", function() {
var scale = d3.event.scale;
console.log(scale);
rect.attr("transform", "translate(" + [0, viewScale(scale)] + ")");
})
.scaleExtent([0.001, 1])
svg.call(zoom);
function redraw(commits) {
previousMax = max;
previousMin = min;
var nodes = [];
var links = [];
commits.forEach(function(d, i) {
var source = {"id": d.id ,"x": x(d.lane), "y": y(d.position)};
nodes.push(d);
if (d.children !== null) {
d.children.forEach(function(c, i) {
var target = {"id": c.id ,"x": x(c.lane), "y": y(c.position)};
links.push({"id": source.id + "-" + target.id ,"source": source, "target": target});
});
}
});
var linksSelection = linksGroup.selectAll("path").data(links, key);
var linksEnterSelection = linksSelection.enter();
var linksExitingSelection = linksSelection.exit();
var enteringLinks = linksEnterSelection.append("path").attr("class", "link").attr("d", initline)
.attr("transform", "translate(30,0)");
enteringLinks.transition()
.duration(delay)
.style("opacity", 1);
var commitsSelection = commitsGroup.selectAll(".circle").data(nodes, key);
var commitsEnterSelection = commitsSelection.enter().append("g").attr("class", "circle");
var commitsExitingSelection = commitsSelection.exit();
var enteringCommits = commitsEnterSelection.append("circle")
.attr("class", function (d) {
if (d.parentCount===0) {
return "commit root";
} else if (d.childCount === 0) {
return "commit tip";
}
return "commit";
})
.attr("cx", function(d) {return x(d.lane);})
.attr("cy", function(d) {
if (d.position < previousMin) {
return margin;
} else if (d.position > previousMax) {
return height-margin;
}
})
.attr("r", 4)
.attr("transform", "translate(30,0)")
.on("click", function(d) { click(d); });
enteringCommits
//.transition()
// .duration(delay)
.style("opacity", 1);
commitsExitingSelection
.transition()
.style("opacity", 1e-6)
.duration(delay)
.remove();
linksExitingSelection
.transition()
.style("opacity", 1e-6)
.duration(delay)
.remove();
var t = svg
//.transition().duration(delay);
t.selectAll("circle.commit").attr("cy", function(d) { return y(+d.position); });
t.selectAll("path").attr("d", line);
linksExitingSelection.transition().style("opacity", 1e-6).remove();
}
body {
background-color: #F8F8F8;
font-family: 'Open Sans', sans-serif;
font-weight: normal;
line-height: 1.2em;
margin: 15px;
}
h1, p {
color: #333;
}
.axis path,
.axis line {
fill: none;
stroke: black;
shape-rendering: crispEdges;
}
.axis text {
font-family: sans-serif;
font-size: 11px;
}
.button {
cursor: pointer;
stroke: #000000;
fill: #229922;
}
.brush .extent {
stroke: #999999;
stroke-width: 2;
fill-opacity: .125;
shape-rendering: crispEdges;
}
.circle .commit {
fill: #999999;
stroke: #333333;
stroke-width: 2px;
}
.circle .commit.root {
fill: #FF0000;
stroke: #FF8800;
stroke-width: 2px;
}
.circle .commit.tip {
fill: #00FF00;
stroke: #FF8800;
stroke-width: 2px;
}
.circle.selected circle {
stroke: #3366FF;
fill: #99AAFF;
}
.link {
stroke: #000000;
stroke-width: 2px;
fill: none;
}
.link.selected{
stroke: #3366FF;
stroke-width: 2px;
fill: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment