コード例 #1
0
        public static GitDetail TryGetFileDetail(string filePath)
        {
            GitDetail detail = null;

            try
            {
                detail = GetFileDetail(filePath);
            }
            catch (Exception)
            {
                // ignored
            }
            return(detail);
        }
コード例 #2
0
ファイル: GitUtility.cs プロジェクト: markvincze/docfx
        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
ファイル: GitUtility.cs プロジェクト: liyang-love/docfx
        public static GitDetail TryGetFileDetail(string filePath)
        {
            if (string.IsNullOrEmpty(filePath))
            {
                return(null);
            }

            GitDetail detail = null;

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