From b7b1771a8c7b9d682106799e87218559664e489a Mon Sep 17 00:00:00 2001 From: Jonathan Pryor Date: Mon, 9 Mar 2020 15:24:39 -0400 Subject: [PATCH] [xa-prep-tasks] Add Task Overlooked in commit 2cfce14b/PR #4362. Doh! --- .../GitDiff.cs | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/GitDiff.cs diff --git a/build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/GitDiff.cs b/build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/GitDiff.cs new file mode 100644 index 00000000000..a59a540d67c --- /dev/null +++ b/build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/GitDiff.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Text.RegularExpressions; + +using Microsoft.Build.Framework; +using Microsoft.Build.Utilities; + +using IOFile = System.IO.File; + +namespace Xamarin.Android.BuildTools.PrepTasks +{ + public sealed class GitDiff : Git + { + protected override bool LogTaskMessages { + get { return false; } + } + + protected override bool PreserveOutput { + get { return false; } + } + + protected override string GenerateCommandLineCommands () + { + return "diff " + Arguments; + } + } +}