예제 #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);
        }