1 Star 0 Fork 3

FreeCAD/shaper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
findDOSfiles.sh 599 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
function isDOSFile
{
local FILENAME="$1"
file "$FILENAME" | grep -q "CRLF line terminators"
}
if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
# Find files with DOS line endings
FOUND=0
for FILE in $(exec git diff-index --check --cached $against -- | sed '/^[+-]/d' | sed -r 's/:[0-9]+:.*//' | uniq) ; do
isDOSFile "$FILE"
if (( $? == 0 ))
then
echo "\"$FILE\" has DOS line endings" >&2
FOUND=1
fi
done
exit $FOUND
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/FreeCAD/shaper.git
git@gitee.com:FreeCAD/shaper.git
FreeCAD
shaper
shaper
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385