Files
git-tfs/GitTfs/Commands/RemoteOptions.cs
Chris Wundram bf61edfcc1 Added an additional ignore-except config option to add exceptions to files
ignored by the ignore-paths option.  For example if you want to ignore all
exe files except the .nuget/NuGet.exe file, you can add exe$ to the ignore-paths
and ^\.nuget to the ignore-except.

Added --except-regex command line option to RemoteOptions to set ignore-except
config.

New tfs-remotes for branches now will copy the ignore-paths and ingore-except
options from the default tfs remote.
2013-05-27 08:14:09 -05:00

39 lines
1003 B
C#

using System.ComponentModel;
using NDesk.Options;
using Sep.Git.Tfs.Util;
namespace Sep.Git.Tfs.Commands
{
using System;
[StructureMapSingleton]
public class RemoteOptions
{
public OptionSet OptionSet
{
get
{
return new OptionSet
{
{ "ignore-regex=", "a regex of files to ignore",
v => IgnoreRegex = v },
{ "except-regex=", "a regex of exceptions to ingore-regex",
v => ExceptRegex = v},
{ "u|username=", "TFS username",
v => Username = v },
{ "p|password=", "TFS password",
v => Password = v },
};
}
}
public string IgnoreRegex { get; set; }
public string ExceptRegex { get; set; }
public string Username { get; set; }
public string Password { get; set; }
}
}