GitSharp.Options.ExtractCommitHashFrom C# (CSharp) Method

ExtractCommitHashFrom() private static method

private static ExtractCommitHashFrom ( string product ) : string
product string
return string
        private static string ExtractCommitHashFrom(string product)
        {
            // TODO: Maybe should we switch to a regEx capture ?
            string[] parts = product.Split(new[] {'['});
            return parts[1].TrimEnd(']');
        }