Skip to content

Instantly share code, notes, and snippets.

shelve () {
local filename=${1:-shelf.patch}
if [[ -a $filename ]]; then
echo 1>&2 shelve: file "'$filename'" already exists
return 256
fi
svn diff | tee $filename | wc -l | read linecount && svn revert -R .
if [[ $linecount -eq 0 ]]; then
#include <Foundation/Foundation.h>
@interface BusyWaiter : NSObject
{
BOOL _done;
}
- (void)markDone;
- (BOOL)isDone;
@end
int main(int argc, char **argv)
{
return 0;
}
#import <Foundation/Foundation.h>
@interface Foo : NSObject
-(id)newFoo;
@end