#ifndef GITPATHSPEC_H
#define GITPATHSPEC_H

#include <nan.h>
#include <string>

extern "C" {
#include <git2.h>
}

#include "../include/pathspec.h"
#include "../include/repository.h"
#include "../include/index.h"
#include "../include/tree.h"
#include "../include/diff.h"


using namespace node;
using namespace v8;

class GitPathspec : public ObjectWrap {
  public:

    static Persistent<Function> constructor_template;
    static void Initialize (Handle<v8::Object> target);

        git_pathspec *GetValue();

    static Handle<Value> New(void *raw);
    
  private:
        GitPathspec(git_pathspec *raw);
    ~GitPathspec();
    
    static NAN_METHOD(New);

    
    
        git_pathspec *raw;
    };

#endif
