【Git】恢复原代码
parent
4f9cd3934b
commit
accaddfd28
|
@ -13,6 +13,7 @@ using System.Collections.Generic;
|
||||||
using Gameplay.ForestLevel;
|
using Gameplay.ForestLevel;
|
||||||
using Object = UnityEngine.Object;
|
using Object = UnityEngine.Object;
|
||||||
using Vector3 = UnityEngine.Vector3;
|
using Vector3 = UnityEngine.Vector3;
|
||||||
|
using NPOI.SS.Formula.Functions;
|
||||||
|
|
||||||
namespace Gameplay.Level
|
namespace Gameplay.Level
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,10 +13,10 @@ check_commit() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 仅对 'Forest/Assets/Scripts/' 路径下的文件进行额外检查
|
# 检查所有以 'using NPOI.' 开头的引用
|
||||||
if [[ $FILE == *"Forest/Assets/Scripts/"* ]]; then
|
if [[ $FILE == *"Forest/Assets/Scripts/"* ]]; then
|
||||||
if git diff --cached --unified=0 -- "$FILE" | grep -v '^-' | grep -q "using NPOI.SS.Formula.Functions"; then
|
if git diff --cached --unified=0 -- "$FILE" | grep -v '^-' | grep -q "using NPOI\."; then
|
||||||
echo "Code 提交失败: $FILE 包含 'using NPOI.SS.Formula.Functions' 内容"
|
echo "Code 提交失败: $FILE 包含 'using NPOI.' 的内容"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue