mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
39def32a1b
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.
28 lines
712 B
Objective-C
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
|