GitVersion.LibGitExtensions.PeeledTarget C# (CSharp) Method

PeeledTarget() public static method

public static PeeledTarget ( this tag ) : GitObject
tag this
return GitObject
        public static GitObject PeeledTarget(this Tag tag)
        {
            var target = tag.Target;

            while (target is TagAnnotation)
            {
                target = ((TagAnnotation)(target)).Target;
            }
            return target;
        }