Example #1
0
        public static void InitRepository()
        {
            Console.WriteLine($"Here we go! GitRepositoryPath: {GitRepPath}");

            IPluginSettingsStorage SettingsStorage = NinjectCore.Get <IPluginSettingsStorage>();
            IPluginParameter       GitRepParam     = SettingsStorage.GetParam(Plugin.Settings.ePluginParameterID.GitRepositoryPath);

            GitRepParam.SetValue(GitRepPath);

            repository = new GitRep(GitRepPath);
            repository.CreateRepository();

            repository.AddFile();
            repository.AddFile();
            repository.StageAll();
            repository.DoCommit("init commit");
        }