Welcome to mirror list, hosted at ThFree Co, Russian Federation.

GitDiffExtensions.cs « Core « LibGit2Sharp - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae2afaf953c9ebe72e5c953d62206b4765801a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using LibGit2Sharp.Core.Compat;

namespace LibGit2Sharp.Core
{
    internal static class GitDiffExtensions
    {
        public static bool IsBinary(this GitDiffDelta delta)
        {
            //TODO Fix the interop issue on amd64 and use GitDiffDelta.Binary
            return delta.OldFile.Flags.HasFlag(GitDiffFileFlags.GIT_DIFF_FLAG_BINARY)
                || delta.NewFile.Flags.HasFlag(GitDiffFileFlags.GIT_DIFF_FLAG_BINARY);
        }
    }
}