function getFirstVersionOfFile(filePath) {
	const firstCommit = getFirstCommitOfFile(filePath);
	let tags = execSilent(`git tag --contains ${firstCommit}`);

	tags = splitCommandResultToLines(tags);
	return tags
		.reduce((list, version) => {
			const validatedVersion = semver.valid(version.trim());

			if (validatedVersion) {
				list.push(validatedVersion);
			}
			return list;
		}, [])
		.sort(semver.compare)[0];
}
Gets the tag name where a given file was introduced first.
@param {string} filePath The file path to check.
@returns {string} The tag name.