Skip to content

Commit e2e20f7

Browse files
committed
[xa-prep-tasks] Add <GitDiff/> Task (#4374)
Overlooked in commit 2cfce14/PR #4362. Doh!
1 parent 285e6c6 commit e2e20f7

File tree

1 file changed

+30
-0
lines changed
  • build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Diagnostics;
4+
using System.IO;
5+
using System.Linq;
6+
using System.Text.RegularExpressions;
7+
8+
using Microsoft.Build.Framework;
9+
using Microsoft.Build.Utilities;
10+
11+
using IOFile = System.IO.File;
12+
13+
namespace Xamarin.Android.BuildTools.PrepTasks
14+
{
15+
public sealed class GitDiff : Git
16+
{
17+
protected override bool LogTaskMessages {
18+
get { return false; }
19+
}
20+
21+
protected override bool PreserveOutput {
22+
get { return false; }
23+
}
24+
25+
protected override string GenerateCommandLineCommands ()
26+
{
27+
return "diff " + Arguments;
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)