--- a/git/GitStructure.st Tue Oct 02 15:41:46 2012 +0000
+++ b/git/GitStructure.st Wed Oct 03 18:33:25 2012 +0000
@@ -28,6 +28,16 @@
"Created: / 30-09-2012 / 20:21:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
+new: size
+ size == self structSize ifFalse:[
+ self error:'Invalid size for git_checkout_opts'.
+ ^nil.
+ ].
+ ^(super new: size) initialize.
+
+ "Created: / 19-09-2012 / 18:13:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
newAddress: address
^self address: address size: self structSize.
@@ -42,6 +52,14 @@
"Created: / 19-09-2012 / 01:53:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
+!GitStructure methodsFor:'initialization'!
+
+initialize
+ 1 to: self size do:[:i|self at: i put: 0]
+
+ "Created: / 03-10-2012 / 20:31:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
!GitStructure methodsFor:'private'!
fromExternalAddress:anExternalAddress