Commit f06f0c5d authored by Leonardo Giordani's avatar Leonardo Giordani
Browse files

Initial commit

parent 851dd272
#############################################################################
# This file is part of the libqgit2 library
# Copyright (C) 2011 Laszlo Papp
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# CMake build script for the libgit2 project
#
# Building (out of source build):
# > mkdir build && cd build
# > cmake .. [-DSETTINGS=VALUE]
# > cmake --build .
#
# Testing:
# > ctest -V
#
# Install:
# > cmake --build . --target install
cmake_minimum_required(VERSION 2.8)
project(libqgit2)
find_package(Qt4 4.6 REQUIRED)
FILE(STRINGS "qgit2.h" QGIT2_HEADER REGEX "^#define LIBQGIT2_VERSION \"[^\"]*\"$")
STRING(REGEX REPLACE "^.*LIBQGIT2_VERSION \"([0-9]+).*$" "\\1" LIBQGIT2_VERSION_MAJOR "${QGIT2_HEADER}")
STRING(REGEX REPLACE "^.*LIBQGIT2_VERSION \"[0-9]+\\.([0-9]+).*$" "\\1" LIBQGIT2_VERSION_MINOR "${QGIT2_HEADER}")
STRING(REGEX REPLACE "^.*LIBQGIT2_VERSION \"[0-9]+\\.[0-9]+\\.([0-9]+).*$" "\\1" LIBQGIT2_VERSION_REV "${QGIT2_HEADER}")
SET(LIBQGIT2_VERSION_STRING "${LIBQGIT2_VERSION_MAJOR}.${LIBQGIT2_VERSION_MINOR}.${LIBQGIT2_VERSION_REV}")
# Installation paths
SET(INSTALL_BIN bin CACHE PATH "Where to install binaries to.")
SET(INSTALL_LIB lib CACHE PATH "Where to install libraries to.")
SET(INSTALL_INC include CACHE PATH "Where to install headers to.")
# Build options
OPTION (BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON)
OPTION (BUILD_TESTS "Build Tests" ON)
#Project options, to provide a selective build process
#Note that some of these are mutually exclusive or just
#do not make a whole lot of sense combined.
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
if(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
option(INSTALL_CMAKE_FILES "Install the *.cmake files into the CMake root" ON)
else()
option(INSTALL_CMAKE_FILES "Install the *.cmake files into the CMake root" OFF)
endif()
set(LIBQGIT2_BUILD_ALL TRUE
CACHE INTERNAL "Build all of LIBQGIT2"
)
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Wall -O2 -g")
SET(CMAKE_CXX_FLAGS_RELEASE "-Wall -O2")
SET(CMAKE_CXX_FLAGS_DEBUG "-Wall -g3 -ggdb -O0" CACHE STRING "Debug options." FORCE)
# Build Release by default
IF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
ENDIF ()
set(GIT2_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/libgit2/include ${CMAKE_SOURCE_DIR}/libgit2/src )
message("CMAKE_SOURCE_DIR = ${CMAKE_SOURCE_DIR}")
message("GIT2_INCLUDE_DIR = ${GIT2_INCLUDE_DIR}")
include_directories(src ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${GIT2_INCLUDEDIR}
${GIT2_INCLUDE_DIR}
${QT_INCLUDES}
)
#find_package(PkgConfig REQUIRED)
#pkg_check_modules(GIT2 REQUIRED libgit2)
#include_directories(src ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${GIT2_INCLUDEDIR} ${QT_INCLUDES})
# Collect sourcefiles
FILE(GLOB SRC src/*.cpp)
# MOC
QT4_WRAP_CPP(MOC_SRC src/qgitindexmodel.h)
message(STATUS)
message(STATUS "========== LIBQGIT2 Build Information ==========")
message(STATUS "Build Version: ${LIBQGIT2_VERSION_STRING} (${LIBQGIT2_VERSION_NAME})")
message(STATUS "Install Prefix: ${CMAKE_INSTALL_PREFIX}")
message(STATUS "Install the *.cmake files into CMake root (INSTALL_CMAKE_FILES): ${INSTALL_CMAKE_FILES}")
message(STATUS)
message(STATUS "To change any of these options, override them using -D{OPTION_NAME} on the commandline.")
message(STATUS "To build and install LIBQGIT2, run \"make\" and \"make install\"")
message(STATUS)
# Compile and link libqgit2
ADD_LIBRARY(qgit2 ${SRC} ${MOC_SRC})
TARGET_LINK_LIBRARIES(qgit2 ${GIT2_LIBRARIES} ${QT_QTCORE_LIBRARY})
SET_TARGET_PROPERTIES(qgit2 PROPERTIES VERSION ${LIBQGIT2_VERSION_STRING})
SET_TARGET_PROPERTIES(qgit2 PROPERTIES SOVERSION ${LIBQGIT2_VERSION_MAJOR})
# Install
INSTALL(TARGETS qgit2
RUNTIME DESTINATION ${INSTALL_BIN}
LIBRARY DESTINATION ${INSTALL_LIB}
ARCHIVE DESTINATION ${INSTALL_LIB}
)
# INSTALL(DIRECTORY src/git2 DESTINATION ${INSTALL_INC} )
INSTALL(FILES qgit2.h DESTINATION ${INSTALL_INC} )
if(INSTALL_CMAKE_FILES)
install(
FILES
DESTINATION
${CMAKE_ROOT}/Modules
OPTIONAL
)
else()
install(
FILES
DESTINATION
${SHARE_INSTALL_DIR}/mula/cmake
OPTIONAL
)
endif()
#Packaging options
set(CPACK_GENERATOR "RPM;TGZ")
set(CPACK_PACKAGE_NAME "LIBQGIT2")
set(CPACK_PACKAGE_FILE_NAME "LIBQGIT2-${LIBQGIT2_VERSION_STRING}")
set(CPACK_PACKAGE_VERSION "${LIBQGIT2_VERSION_MAJOR}.${LIBQGIT2_VERSION_MINOR}.${LIBQGIT2_VERSION_PATCH}")
set(CPACK_PACKAGE_CONTACT "Laszlo Papp <djszapi@archlinux.us>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "libgit2 bindings for Qt")
include(InstallRequiredSystemLibraries)
include(CPack)
This diff is collapsed.
HEADERS += \
http_parser.h
SOURCES += \
libgit2/deps/http-parser/http_parser.c
SOURCES += \
attr.c \
attr_file.c \
blob.c \
buffer.c \
cache.c \
commit.c \
config.c \
config_file.c \
delta-apply.c \
errors.c \
fetch.c \
filebuf.c \
fileops.c \
global.c \
hash.c \
ignore.c \
index.c \
indexer.c \
mwindow.c \
netops.c \
object.c \
odb.c \
odb_loose.c \
odb_pack.c \
oid.c \
pack.c \
path.c \
pkt.c \
posix.c \
pqueue.c \
protocol.c \
reflog.c \
refs.c \
refspec.c \
remote.c \
repository.c \
revwalk.c \
sha1.c \
sha1_lookup.c \
signature.c \
status.c \
tag.c \
thread-utils.c \
transport.c \
tree-cache.c \
tree.c \
tsort.c \
util.c \
vector.c
unix:SOURCES += \
unix/map.c
win32:SOURCES += \
win32/dir.c \
win32/fnmatch.c \
win32/map.c \
win32/posix_w32.c \
win32/pthread.c \
win32/utf-conv.c
win32:OTHER_FILES += git2.rc
######################################################################
# Automatically generated by qmake (2.01a) Di. Aug 16 11:19:28 2011
######################################################################
TEMPLATE = lib
TARGET = qgit2
DEPENDPATH += . src \
libgit2/src libgit2/include libgit2/include/git2 \
libgit2/deps/http-parser
INCLUDEPATH += . src \
libgit2/include libgit2/src \
libgit2/deps/http-parser
CONFIG += staticlib
# Input
HEADERS += \
libqgit2_export.h \
qgitblob.h \
qgitcommit.h \
qgitdatabase.h \
qgitdatabasebackend.h \
qgitindex.h \
qgitindexentry.h \
qgitindexmodel.h \
qgitobject.h \
qgitoid.h \
qgitref.h \
qgitrepository.h \
qgitrevwalk.h \
qgitsignature.h \
qgittag.h \
qgittree.h \
qgittreeentry.h \
qgitexception.h \
qgit2.h \
src/qgitconfig.h
SOURCES += \
qgitblob.cpp \
qgitcommit.cpp \
qgitdatabase.cpp \
qgitdatabasebackend.cpp \
qgitindex.cpp \
qgitindexentry.cpp \
qgitindexmodel.cpp \
qgitobject.cpp \
qgitoid.cpp \
qgitref.cpp \
qgitrepository.cpp \
qgitrevwalk.cpp \
qgitsignature.cpp \
qgittag.cpp \
qgittree.cpp \
qgittreeentry.cpp \
qgitexception.cpp \
src/qgitconfig.cpp
include(libgit2.pri)
include(http-parser.pri)
DEFINES += STDC _GNU_SOURCE
INCLUDEPATH += libgit2/deps/zlib
DEPENDPATH += libgit2/deps/zlib
include(zlib.pri)
/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2011 Laszlo Papp <djszapi@archlinux.us>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef LIBQGIT2_EXPORT_H
#define LIBQGIT2_EXPORT_H
#include <QtCore/qglobal.h>
#include <QtCore/QObject>
/** @defgroup LibQGit2 The Qt Library for Git revision control featuring libgit2
* Qt wrapper classes for the LibGit2 library.
*/
#ifndef LIBQGIT2_EXPORT
#if defined(MAKE_LIBQGIT2_LIB)
#define LIBQGIT2_EXPORT Q_DECL_EXPORT
#else
#define LIBQGIT2_EXPORT Q_DECL_IMPORT
#endif
#endif
#ifndef LIBQGIT2_EXPORT_DEPRECATED
#define LIBQGIT2_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
#endif
#ifndef LIBQGIT2_BLOB_EXPORT
#if defined(MAKE_LIBQGIT2_COMPONENT_BLOB)
# define LIBQGIT2_BLOB_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_BLOB_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_BLOB_EXPORT_DEPRECATED
# define LIBQGIT2_BLOB_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_REPOSITORY_EXPORT
#if defined(MAKE_LIBQGIT2_COMPONENT_REPOSITORY)
# define LIBQGIT2_REPOSITORY_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_REPOSITORY_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_REPOSITORY_EXPORT_DEPRECATED
# define LIBQGIT2_REPOSITORY_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_DATABASE_EXPORT
#if defined(MAKE_LIBQGIT2_COMPONENT_DATABASE)
# define LIBQGIT2_DATABASE_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_DATABASE_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_DATABASE_EXPORT_DEPRECATED
# define LIBQGIT2_DATABASE_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_DATABASEBACKEND_EXPORT
#if defined(MAKE_LIBQGIT2_COMPONENT_DATABASEBACKEND)
# define LIBQGIT2_DATABASEBACKEND_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_DATABASEBACKEND_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_DATABASEBACKEND_EXPORT_DEPRECATED
# define LIBQGIT2_DATABASEBACKEND_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_OID_EXPORT
#if defined(MAKE_LIBQGIT2_COMPONENT_OID)
# define LIBQGIT2_OID_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_OID_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_OID_EXPORT_DEPRECATED
# define LIBQGIT2_OID_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_OBJECT_EXPORT
#if defined(MAKE_LIBQGIT2_OBJECT)
# define LIBQGIT2_OBJECT_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_OBJECT_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_OBJECT_EXPORT_DEPRECATED
# define LIBQGIT2_OBJECT_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_INDEX_EXPORT
#if defined(MAKE_LIBQGIT2_INDEX_OBJECT)
# define LIBQGIT2_INDEX_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_INDEX_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_INDEX_EXPORT_DEPRECATED
# define LIBQGIT2_INDEX_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_REFS_EXPORT
#if defined(MAKE_LIBQGIT2_REFS_OBJECT)
# define LIBQGIT2_REFS_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_REFS_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_REFS_EXPORT_DEPRECATED
# define LIBQGIT2_REFS_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_TAG_EXPORT
#if defined(MAKE_LIBQGIT2_TAG)
# define LIBQGIT2_TAG_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_TAG_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_TAG_EXPORT_DEPRECATED
# define LIBQGIT2_TAG_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_SIGNATURE_EXPORT
#if defined(MAKE_LIBQGIT2_SIGNATURE)
# define LIBQGIT2_SIGNATURE_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_SIGNATURE_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_SIGNATURE_EXPORT_DEPRECATED
# define LIBQGIT2_SIGNATURE_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_REVWALK_EXPORT
#if defined(MAKE_LIBQGIT2_REVWALK)
# define LIBQGIT2_REVWALK_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_REVWALK_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_REVWALK_EXPORT_DEPRECATED
# define LIBQGIT2_REVWALK_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_COMMIT_EXPORT
#if defined(MAKE_LIBQGIT2_COMMIT)
# define LIBQGIT2_COMMIT_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_COMMIT_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_COMMIT_EXPORT_DEPRECATED
# define LIBQGIT2_COMMIT_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_TREE_EXPORT
#if defined(MAKE_LIBQGIT2_TREE)
# define LIBQGIT2_TREE_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_TREE_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_TREE_EXPORT_DEPRECATED
# define LIBQGIT2_TREE_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_TREEENTRY_EXPORT
#if defined(MAKE_LIBQGIT2_TREEENTRY)
# define LIBQGIT2_TREEENTRY_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_TREEENTRY_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_TREEENTRY_EXPORT_DEPRECATED
# define LIBQGIT2_TREEENTRY_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#ifndef LIBQGIT2_RAWOBJECT_EXPORT
#if defined(MAKE_LIBQGIT2_RAWOBJECT)
# define LIBQGIT2_RAWOBJECT_EXPORT Q_DECL_EXPORT
#else
# define LIBQGIT2_RAWOBJECT_EXPORT Q_DECL_IMPORT
#endif
#endif
# ifndef LIBQGIT2_RAWOBJECT_EXPORT_DEPRECATED
# define LIBQGIT2_RAWOBJECT_EXPORT_DEPRECATED Q_DECL_DEPRECATED LIBQGIT2_EXPORT
# endif
#endif // LIBQGIT2_EXPORT_H
/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2011 Laszlo Papp <djszapi@archlinux.us>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef INCLUDE_QGIT2_H
#define INCLUDE_QGIT2_H
#define LIBQGIT2_VERSION "0.1.0"
#define LIBQGIT2_VER_MAJOR 0
#define LIBQGIT2_VER_MINOR 1
#define LIBQGIT2_VER_REVISION 0
#include "src/qgitoid.h"
#include "src/qgitsignature.h"
#include "src/qgitdatabase.h"
#include "src/qgitrepository.h"
#include "src/qgitrevwalk.h"
#include "src/qgitrefs.h"
#include "src/qgitobject.h"
#include "src/qgitblob.h"
#include "src/qgitcommit.h"
#include "src/qgittag.h"
#include "src/qgittree.h"
#include "src/qgitindex.h"
#endif
cmake_minimum_required(VERSION 2.6)
if(NOT GLUON_BUILD_ALL)
find_package(GluonGraphics REQUIRED)
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${GLUON_GRAPHICS_INCLUDES})
set(particlecollidercomponent_SRCS
particlecollidercomponent.cpp
)
qt4_automoc(${particlecollidercomponent_SRCS})
add_library(gluon_component_particlecollider SHARED ${particlecollidercomponent_SRCS})
if(GLUON_BUILD_ALL)
add_dependencies(gluon_component_particlecollider GluonEngine GluonGraphics)
endif()
set_target_properties(gluon_component_particlecollider PROPERTIES VERSION ${GLUON_VERSION_STRING} SOVERSION ${GLUON_VERSION_STRING} DEFINE_SYMBOL MAKE_GLUON_COMPONENT_PARTICLECOLLIDER_LIB)
target_link_libraries(gluon_component_particlecollider GluonEngine ${GLUON_GRAPHICS_LIBS})
install(
TARGETS
gluon_component_particlecollider
DESTINATION
${LIB_INSTALL_DIR}/gluon
)
/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2011 Laszlo Papp <djszapi@archlinux.us>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "qgitblob.h"
#include "qgitoid.h"
#include "qgitrepository.h"
#include <QtCore/QFile>
#include <git2/blob.h>
namespace LibQGit2
{
QGitBlob::QGitBlob(git_blob *blob)
: QGitObject(reinterpret_cast<git_object*>(blob))
{
}
QGitBlob::QGitBlob( const QGitBlob& other )
: QGitObject(other)
{
}
QGitBlob::~QGitBlob()
{
}
const void* QGitBlob::rawContent() const
{
return git_blob_rawcontent(data());
}
QByteArray QGitBlob::content() const
{
return QByteArray::fromRawData( static_cast<const char *>(rawContent()), rawSize() );
}
int QGitBlob::rawSize() const
{
return git_blob_rawsize(data());
}