git.fiddlerwoaroof.com
Browse code

chore: update readme, fix commit-parents

Edward authored on 19/05/2021 08:49:32
Showing 2 changed files
... ...
@@ -43,7 +43,7 @@
43 43
     #+END_SRC
44 44
 
45 45
     #+RESULTS:
46
-    : #<LOOSE-REF ee4281c of /Users/edwlan/git_repos/cl-git/>
46
+    : #<LOOSE-REF b27750d of /Users/edwlan/quicklisp/local-projects/cl-git/>
47 47
 
48 48
 
49 49
 *** Show the commit message
... ...
@@ -55,7 +55,7 @@
55 55
     #+END_SRC
56 56
 
57 57
     #+RESULTS:
58
-    : feat(tests): add tests for pack files
58
+    : feat(delta): first cut of delta extraction
59 59
 
60 60
 *** Show the messages of the commit's parent
61 61
 
... ...
@@ -67,7 +67,7 @@
67 67
     #+END_SRC
68 68
 
69 69
     #+RESULTS:
70
-    : ("chore: CI done
70
+    : ("refactor: minor refactors, start using transducers
71 71
     : ")
72 72
 
73 73
 *** Show the files in a commit
... ...
@@ -92,21 +92,21 @@
92 92
     | .gitignore      | 100644 | 8a9fe9f77149f74fed5c05388be8e5ffd4a31678 |
93 93
     | .projectile     | 100644 | e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
94 94
     | LICENSE         | 100644 | 0306819e780fa57dc3bf6b99a0a059670b605ae0 |
95
-    | README.org      | 100644 | 8d4d0a83e681ed4fe4d89693bb4290244ec5ea6f |
95
+    | README.org      | 100644 | 8be1c00d70982a8dd819673289f57bab201ae9fb |
96 96
     | branch.lisp     | 100644 | 6ee2b1e254e7895d55ecd534b2fa16267ec14389 |
97
-    | cl-git.asd      | 100644 | 7248159b03dcdf85ceaa9d3b0df571b80a3ce206 |
98
-    | commit.lisp     | 100644 | d6509a0be2a12d9f57491bd7d664e02fda618eb8 |
99
-    | delta.lisp      | 100644 | 995d5a4fb90f02caeda47c01a2b3427828d2be0e |
97
+    | cl-git.asd      | 100644 | fac607480b840e3037abd80617d9b19a0fe214c7 |
98
+    | commit.lisp     | 100644 | d6a83c1a351eb2c0f5315ceddcde37545b7781d6 |
99
+    | delta.lisp      | 100644 | 1fa43a800829dfa49e540129d8243f748bb17543 |
100 100
     | docker-run      |  40000 | 53b626da144188970e4c1b63ee3b23212e277672 |
101
-    | extract.lisp    | 100644 | a73c8c7917b15af8fcd0141bfd21c60aacc9ee07 |
102
-    | git.lisp        | 100644 | c516dfc248544509c3ae58e3a8c2ab81c225aa9c |
101
+    | extract.lisp    | 100644 | 4bfb480eb2993cf516fded3adec49483322fdcf4 |
102
+    | git.lisp        | 100644 | bad6f54787369609581669de923afaf378ed4002 |
103 103
     | graph.lisp      | 100644 | 31576396aff0fff28f69e0ef84571c0dc8cc43ec |
104 104
     | model.lisp      | 100644 | 346fa823d06b6cebead49c7ec37d90b3cc660528 |
105 105
     | package.lisp    | 100644 | 538e7211817953a036f8f913dd4509c8edc6a489 |
106
-    | porcelain.lisp  | 100644 | 4699a3273082511158ed559f56e758547bb569ec |
106
+    | porcelain.lisp  | 100644 | 9190e6fb27aad51167b23f1cc4089e426241159b |
107 107
     | protocol.lisp   | 100644 | 7e24a6a7a4349497fce06830fa132e9a8ef6fd06 |
108 108
     | repository.lisp | 100644 | af1cc58c12b32770fa63ac29502a446b3b059c90 |
109
-    | tests           |  40000 | c1b8c8dd1cd307ff836920256ef109e2b8fda283 |
109
+    | tests           |  40000 | 47c7f38df49c936fa6263eb70fc6749f33f8be34 |
110 110
     | tree.lisp       | 100644 | 42eceec42eb35d4ee2b739e99d7e1a51f1b9fd35 |
111 111
     | undelta.lisp    | 100644 | ae0a070133d1a14d6e940a0f790f40b37e885b22 |
112 112
     | util.lisp       | 100644 | 66279b2fa08c9d0872e888b85fe14d9950e27326 |
... ...
@@ -130,7 +130,7 @@
130 130
     #+RESULTS:
131 131
     | Name       |   Mode | Hash                                     |
132 132
     |------------+--------+------------------------------------------|
133
-    | delta.lisp | 100644 | 995d5a4fb90f02caeda47c01a2b3427828d2be0e |
133
+    | delta.lisp | 100644 | 1fa43a800829dfa49e540129d8243f748bb17543 |
134 134
     | graph.lisp | 100644 | 31576396aff0fff28f69e0ef84571c0dc8cc43ec |
135 135
     | model.lisp | 100644 | 346fa823d06b6cebead49c7ec37d90b3cc660528 |
136 136
     | tree.lisp  | 100644 | 42eceec42eb35d4ee2b739e99d7e1a51f1b9fd35 |
... ...
@@ -138,7 +138,7 @@
138 138
 
139 139
 ** Partially Implemented:
140 140
 
141
-*** Delta refs
141
+*** Delta refs [1/2]
142 142
     Git uses a [[https://git-scm.com/docs/pack-format#_deltified_representation][delta calculation]] routine to compress some of the blobs
143 143
     in a pack file. This delta stores a reference to a base object and
144 144
     a sequence of commands for transforming the base object into the
... ...
@@ -162,3 +162,8 @@
162 162
     #+BEGIN_SRC sh
163 163
       git repack --window=0
164 164
     #+END_SRC
165
+
166
+
167
+**** DONE Decode delta commands
168
+     CLOSED: [2021-05-19 Wed 01:49]
169
+**** TODO Write interpreter
... ...
@@ -147,9 +147,8 @@
147 147
   (branches *git-repository*))
148 148
 
149 149
 (defun git::parents (commit)
150
-  (alexandria:mappend (data-lens:<>1 (data-lens:over 'ensure-ref)
151
-                                     #'cdr)
152
-                      (component :parents commit)))
150
+  (mapcar 'ensure-ref
151
+          (component :parents commit)))
153 152
 (defun git:commit-parents (commit)
154 153
   (git::parents commit))
155 154