Files
gitx/PBGitRefish.h
T
Nathan Kinsinger 39def32a1b Add <PBGitRefish> protocol.
This will simplify methods that execute git commands that can take a ref or an SHA.

Add some string constants so there is only one place for the type strings.
2010-02-19 22:55:07 -07:00

28 lines
712 B
Objective-C

//
// PBGitRefish.h
// GitX
//
// Created by Nathan Kinsinger on 12/25/09.
// Copyright 2009 Nathan Kinsinger. All rights reserved.
//
#import <Cocoa/Cocoa.h>
// Several git commands can take a ref "refs/heads/master" or an SHA.
// Use <PBGitRefish> to accept a PBGitRef or a PBGitCommit without having to write
// two separate methods.
//
// refishName the full name of the ref "refs/heads/master" or the full SHA
// used in git commands
// shortName a more user friendly version of the refName, "master" or a short SHA
// refishType a short name for the type
@protocol PBGitRefish <NSObject>
- (NSString *) refishName;
- (NSString *) shortName;
- (NSString *) refishType;
@end