summaryrefslogtreecommitdiff
path: root/object.nobj.lua
diff options
context:
space:
mode:
authorRobert G. Jakabosky <bobby@sharedrealm.com>2011-01-07 10:45:11 -0800
committerRobert G. Jakabosky <bobby@sharedrealm.com>2011-01-07 10:45:11 -0800
commit4c770c5b37de769fb50ccd81b11c51367f57d8ba (patch)
tree9da7b5e85e2b5120439aa9b6719f6743c6602818 /object.nobj.lua
parenta4a95948e23558873801b9f4680d1a930a12da2f (diff)
downloadluagit2-4c770c5b37de769fb50ccd81b11c51367f57d8ba.tar.gz
Replace OType userdata with strings. Added missing rawsize() method.
Diffstat (limited to 'object.nobj.lua')
-rw-r--r--object.nobj.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/object.nobj.lua b/object.nobj.lua
index 518340f..2af52df 100644
--- a/object.nobj.lua
+++ b/object.nobj.lua
@@ -45,7 +45,8 @@ object "Object" {
]]
},
method "type" {
- c_call "OType" "git_object_type" {}
+ var_out{"const char *", "type"},
+ c_source "${type} = git_object_type2string(git_object_type(${this}));"
},
method "owner" {
c_call "Repository *" "git_object_owner" {}