GitCommands.GitModule.GetCommitCountString C# (CSharp) Method

GetCommitCountString() public method

public GetCommitCountString ( string from, string to ) : string
from string
to string
return string
        public string GetCommitCountString(string from, string to)
        {
            int? removed = GetCommitCount(from, to);
            int? added = GetCommitCount(to, from);

            if (removed == null || added == null)
                return "";
            if (removed == 0 && added == 0)
                return "=";

            return
                (removed > 0 ? ("-" + removed) : "") +
                (added > 0 ? ("+" + added) : "");
        }
GitModule