/// <summary> /// Many SVN properties have values that are sets of new-line separated strings. /// This method gets the values in the property value set. /// </summary> public static string[] GetPropertyValues(this SvnCommand svnCommand, AbsolutePath path, string propertyName) { var value = svnCommand.GetPropertyValueIfExists(path, propertyName); if (SvnCommand.IsValue(value)) { var output = value.Split(new[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); return(output); } else { return(Array.Empty <string>()); } }
/// <summary> /// Gets the whole value of the SVN ignore property, or <see cref="SvnCommand.NonValue"/> if not. /// </summary> public static string GetSvnIgnoreValue(this SvnCommand svnCommand, AbsolutePath path) { var value = svnCommand.GetPropertyValueIfExists(path, SvnCommand.SvnIgnorePropertyName); return(value); }