Пример #1
0
        public static GitDetail TryGetFileDetail(string filePath)
        {
            GitDetail detail = null;

            try
            {
                detail = GetFileDetail(filePath);
            }
            catch (Exception)
            {
                // ignored
            }
            return(detail);
        }
Пример #2
0
        public static GitDetail TryGetFileDetail(string filePath)
        {
            GitDetail detail = null;

            try
            {
                detail = GetFileDetail(filePath);
            }
            catch (Exception ex)
            {
                Logger.LogWarning($"Skipping GetFileDetail. Exception found: {ex.GetType()}, Message: {ex.Message}");
                Logger.LogVerbose(ex.ToString());
            }
            return(detail);
        }
Пример #3
0
        public static GitDetail TryGetFileDetail(string filePath)
        {
            if (string.IsNullOrEmpty(filePath))
            {
                return(null);
            }

            GitDetail detail = null;

            try
            {
                detail = GetFileDetailCore(filePath);
            }
            catch (Exception)
            {
                // ignored
            }
            return(detail);
        }