-
Notifications
You must be signed in to change notification settings - Fork 283
Expand file tree
/
Copy pathGTOdbObject.h
More file actions
41 lines (30 loc) · 1.11 KB
/
GTOdbObject.h
File metadata and controls
41 lines (30 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// GTOdbObject.h
// ObjectiveGitFramework
//
// Created by Timothy Clem on 3/23/11.
// Copyright 2011 GitHub, Inc. All rights reserved.
//
#import "GTObject.h"
NS_ASSUME_NONNULL_BEGIN
@interface GTOdbObject : NSObject
/// The repository in which the object resides.
@property (nonatomic, readonly, strong) GTRepository *repository;
- (instancetype)init NS_UNAVAILABLE;
/// Initializes the object with the underlying libgit2 object and repository. Designated initializer.
///
/// object - The underlying libgit2 object. Cannot be NULL.
/// repository - The repository in which the object resides. Cannot be nil.
///
/// Returns the initialized object.
- (nullable instancetype)initWithOdbObj:(git_odb_object *)object repository:(GTRepository *)repository NS_DESIGNATED_INITIALIZER;
/// The underlying `git_odb_object`.
- (git_odb_object *)git_odb_object __attribute__((objc_returns_inner_pointer));
- (nullable NSString *)shaHash;
- (GTObjectType)type;
- (size_t)length;
- (nullable NSData *)data;
/// The object ID of this object.
@property (nonatomic, readonly, nullable) GTOID *OID;
@end
NS_ASSUME_NONNULL_END