Guitar
src
GitObject.h
Go to the documentation of this file.
1
2
#ifndef GITOBJECT_H
3
#define GITOBJECT_H
4
5
#include <QByteArray>
6
7
struct
GitObject
{
8
enum class
Type
{
// 値は固定。packフォーマットで決まってる
9
NONE
= -1,
10
UNKNOWN
= 0,
11
COMMIT
= 1,
12
TREE
= 2,
13
BLOB
= 3,
14
TAG
= 4,
15
UNDEFINED
= 5,
16
OFS_DELTA
= 6,
17
REF_DELTA
= 7,
18
};
19
Type
type
=
Type::NONE
;
20
QByteArray
content
;
21
explicit
operator
bool ()
const
22
{
23
return
type
!=
Type::NONE
;
24
}
25
};
26
27
28
#endif
// GITOBJECT_H
GitObject
Definition:
GitObject.h:7
GitObject::content
QByteArray content
Definition:
GitObject.h:20
GitObject::type
Type type
Definition:
GitObject.h:19
GitObject::Type
Type
Definition:
GitObject.h:8
GitObject::Type::UNDEFINED
@ UNDEFINED
GitObject::Type::BLOB
@ BLOB
GitObject::Type::COMMIT
@ COMMIT
GitObject::Type::OFS_DELTA
@ OFS_DELTA
GitObject::Type::UNKNOWN
@ UNKNOWN
GitObject::Type::NONE
@ NONE
GitObject::Type::TREE
@ TREE
GitObject::Type::TAG
@ TAG
GitObject::Type::REF_DELTA
@ REF_DELTA
Generated by
1.9.1