mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 15:30:18 +00:00
52 lines
1.0 KiB
Objective-C
52 lines
1.0 KiB
Objective-C
//
|
|
// PBGitRef.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 06-09-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "PBGitRefish.h"
|
|
|
|
|
|
extern NSString * const kGitXTagType;
|
|
extern NSString * const kGitXBranchType;
|
|
extern NSString * const kGitXRemoteType;
|
|
extern NSString * const kGitXRemoteBranchType;
|
|
|
|
extern NSString * const kGitXTagRefPrefix;
|
|
extern NSString * const kGitXBranchRefPrefix;
|
|
extern NSString * const kGitXRemoteRefPrefix;
|
|
|
|
|
|
@interface PBGitRef : NSObject <PBGitRefish> {
|
|
NSString* ref;
|
|
}
|
|
|
|
// <PBGitRefish>
|
|
- (NSString *) refishName;
|
|
- (NSString *) shortName;
|
|
- (NSString *) refishType;
|
|
|
|
- (NSString *) tagName;
|
|
- (NSString *) branchName;
|
|
- (NSString *) remoteName;
|
|
- (NSString *) remoteBranchName;
|
|
|
|
- (NSString *) type;
|
|
- (BOOL) isBranch;
|
|
- (BOOL) isTag;
|
|
- (BOOL) isRemote;
|
|
- (BOOL) isRemoteBranch;
|
|
|
|
- (PBGitRef *) remoteRef;
|
|
|
|
- (BOOL) isEqualToRef:(PBGitRef *)otherRef;
|
|
|
|
+ (PBGitRef*) refFromString: (NSString*) s;
|
|
- (PBGitRef*) initWithString: (NSString*) s;
|
|
@property(readonly) NSString* ref;
|
|
|
|
@end
|