Exemplo n.º 1
0
        private static ProcessStartInfo CreateGitProcess(UsersGitConfiguration Settings)//, out Process gitProcess)
        {
            ProcessStartInfo gitInfo = new ProcessStartInfo
            {
                CreateNoWindow         = true,
                RedirectStandardError  = true,
                RedirectStandardOutput = true,
                FileName        = Settings.GitLocation + @"\git.exe",
                UseShellExecute = false
            };

            return(gitInfo);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Set-up Git environment.
        /// </summary>
        /// <param name="Settings"></param>
        public static void UpdateGitConfiguration(UsersGitConfiguration Settings)
        {
            while (IsGitProcessRunning)
            {
                ;                          // wait till the current thread is complete
            }
            _logCmd    = Log;
            _logFormat = Settings.LogFormat;

            _getSubmodulesCmd = Settings.RecursiveSubmoduleSearch == true ? RecursiveSubmodulesSearch : SubmodulesSearch;

            _fetchCmd = Settings.FetchType == @"Manual" ? DryFetch : AutoFetch;
#if DEBUG
            GitTrayUI.TrayTimer.Interval = Convert.ToInt32(Settings.PollTime) * 100;
#else
            GitTrayUI.TrayTimer.Interval = Convert.ToInt32(Settings.PollTime) * 10000;
#endif
            GitConfig = CreateGitProcess(Settings);
        }