拉出了一些明显可疑的提交日志(标准的中国学校授课时间),如果不是什么极为特殊的原因,我想不到什么可以支撑他这样做。
```
Fri Sep 29 17:51:56 2023 +0800 40e6b5e0e2b3df4ee24cac801213529b726046d5 Zhang Minghan update requirements
Fri Sep 29 17:25:27 2023 +0800 6ac6e784efaf219887c03ab3e9f3a7ef8cc90666 Zhang Minghan v3 restruct
Mon Sep 25 16:51:56 2023 +0800 51f025b0f4a9d623fb6ad2e57616e28ed529d685 Zhang Minghan init v3
Mon Sep 18 17:10:25 2023 +0800 f10b26ec5f7210f8de73b2e632d2a5eea1d816c5 Zhang Minghan mobile adapter: use vh instead of window height
Tue Sep 12 17:03:51 2023 +0800 b6c18f28aba6566e48a25f927ee7c7c56c69d75f Zhang Minghan add latex support and markdown highlight async build
Tue Sep 12 10:53:29 2023 +0800 4a5b02172765f22b35ff13bacd65bc8f775a055f Zhang Minghan fix bug of -Infinity and update web feature: using webpilot
Mon Sep 11 14:44:22 2023 +0800 45bf75709d52e4af73bc383a323369ccc2342f40 Zhang Minghan update subscription
Fri Sep 8 11:13:20 2023 +0800 6b37bc13b9de3d1e20469ef28d94bed5e830dcff Zhang Minghan update cache
Fri Sep 8 11:08:53 2023 +0800 40a407ec4a717689e102268157d242f9811dbc55 Zhang Minghan update workbox
Fri Sep 8 11:00:07 2023 +0800 cb2a1141ec66a761007ed5fa177df95dd014bb32 Zhang Minghan update pwa and docs
Thu Sep 7 11:34:52 2023 +0800 cf8137373b9f5b533076811eab671ad8ecfe681f Zhang Minghan update scroll action and quota store
Thu Sep 7 10:10:13 2023 +0800 8958afca685af9fdff37d30fc81dbd2a99941f74 Zhang Minghan update quota
Wed Sep 6 14:14:42 2023 +0800 806cf3a048a68c9163a147de2b9ac75891b36c50 Zhang Minghan update f docs
Wed Sep 6 11:21:10 2023 +0800 b96b2ee185377868602d149a7a7bf1840d6d48b9 Zhang Minghan f moved
Wed Sep 6 10:15:54 2023 +0800 aff13e6cc03e2e93542c6ca0fdf80eb1acbfac68 Zhang Minghan update i18n
Tue Sep 5 11:34:00 2023 +0800 4b57ec43109213bddb6ccb36fb1a3bfcff8e1981 Zhang Minghan update markdown render
Mon Sep 4 17:03:06 2023 +0800 36ea2ba04e17b771bb9f1623dac525827131a6ec Zhang Minghan update login page and operation interface
```
这只是一个示例,这样的日志还有很多,我可以提供一个脚本,各位可以自己拉代码仓库下来分析下。
```
#!/bin/bash
git log --format="%ad %H %an <%ae> %s" | while read line; do # Include author name and email
commit_date=$(echo "$line" | cut -d ' ' -f1-5)
commit_hash=$(echo "$line" | cut -d ' ' -f6)
commit_author=$(echo "$line" | cut -d ' ' -f7-9) # Extract author
commit_message=$(echo "$line" | cut -d ' ' -f10-) # Adjust message extraction
day_of_week=$(date -d "$commit_date" +%w)
month=$(date -d "$commit_date" +%m)
hour=$(date -d "$commit_date" +%H)
hour=$((10#$hour))
if (( day_of_week >= 1 && day_of_week <= 5 )) && [[ ! "$month" == "07" && ! "$month" == "08" && ! "$month" == "02" ]]; then
if (( (hour >= 8 && hour < 12) || (hour >= 14 && hour < 18) )); then
echo "$commit_date $commit_hash $commit_author $commit_message" # Include author in output
fi
fi
done > filtered_commits.txt
echo "Filtered commits saved to filtered_commits.txt"
``` |