11 #include <InterfaceKit.h> 36 git_repository* repo = NULL;
37 return git_repository_init(&repo, dirPath.String(), 0);
48 const git_error* err = giterr_last();
49 printf(
"Error %d : %s\n", err->klass, err->message);
51 BString buffer(
"Error : %s");
52 buffer.ReplaceFirst(
"%s", err->message);
53 BAlert* alert =
new BAlert(
"", buffer.String(),
"Cancel",
54 0, 0, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
57 BString buffer(
"Repository initialted sucessfully.");
58 BAlert* alert =
new BAlert(
"", buffer.String(),
"OK",
59 0, 0, B_WIDTH_AS_USUAL);
#define APP_SIGN
The Application signature.
virtual void Execute()
Init command excution.
Header file of Init command.
Init(BString)
Init command constructor.
BString fDirPath
The current directory where Init option is selected.
static int InitRepo(BString)
Initializes empty repo in given directory.