11 #include <InterfaceKit.h> 40 ret = git_repository_open_ext(&repo,
fRepoPath.String(), 0, NULL);
45 ret = git_repository_index(&index, repo);
52 const git_error* er = giterr_last();
53 printf(
"Error %d : %s\n", er->klass, er->message);
55 BString buffer(
"Error : %s");
56 buffer.ReplaceFirst(
"%s", er->message);
57 BAlert *alert =
new BAlert(
"", buffer.String(),
"Cancel",
58 0, 0, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
61 git_repository_free(repo);
62 git_libgit2_shutdown();
void output_conflicts(git_index *index)
Shows conflicts in current repo index in a window.
BString fRepoPath
The repo path where ShowConflicts option is selected.
Header file of ShowConflicts command.
virtual void Execute()
ShowConflicts command excution.
ShowConflicts(BString)
ShowConflicts command constructor.