protected override bool shouldFire() { if (targetObject == null && targetBranch == "") { return(true); } else { if (targetBranch == "" || versionManager.GetActiveBranch().GetName() == targetBranch) { ICommit commit = versionManager.GetHead(); if (targetObject == null || commit.ObjectIsTrackedInThisCommit(targetObject) && commit.ObjectWasChangedInThisCommit(targetObject)) { return(true); } } } return(false); }
protected override bool shouldFire() { return(targetBranch == "" || versionManager.GetActiveBranch().GetName() == targetBranch); }