git/GitDiffRangeStructure.st
changeset 5 57c20a77e549
child 8 4275f357d3e8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/git/GitDiffRangeStructure.st	Mon Sep 17 20:28:12 2012 +0000
@@ -0,0 +1,78 @@
+"{ Package: 'stx:libscm/git' }"
+
+ExternalAddress subclass:#GitDiffRangeStructure
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Git-Internal-Structures'
+!
+
+
+!GitDiffRangeStructure class methodsFor:'accessing'!
+
+libraryName
+
+    OperatingSystem isUNIXlike ifTrue:[^'libgit2.so'].
+
+    OperatingSystem isMSWINDOWSlike ifTrue:[^'git2.dll'].
+
+    self error:'Library name for host OS is not known'
+!
+
+structSize
+    "Returns size of undelaying structure in bytes"
+
+    ^16
+! !
+
+!GitDiffRangeStructure methodsFor:'accessing'!
+
+newLines
+    "Returns int32"
+
+    ^self longAt:1 + 12
+!
+
+newLines: value
+
+    self longAt:1 + 12 put:value
+!
+
+newStart
+    "Returns int32"
+
+    ^self longAt:1 + 8
+!
+
+newStart: value
+
+    self longAt:1 + 8 put:value
+!
+
+oldLines
+    "Returns int32"
+
+    ^self longAt:1 + 4
+!
+
+oldLines: value
+
+    self longAt:1 + 4 put:value
+!
+
+oldStart
+    "Returns int32"
+
+    ^self longAt:1 + 0
+!
+
+oldStart: value
+
+    self longAt:1 + 0 put:value
+! !
+
+!GitDiffRangeStructure class methodsFor:'documentation'!
+
+version_SVN
+    ^ '$Id::                                                                                                                        $'
+! !