-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paths
More file actions
43 lines (40 loc) · 1.05 KB
/
s
File metadata and controls
43 lines (40 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cripts/create_history.sh#!/bin/bash
# Genee realistic commit history for eclipseaim
# Run this BEFORE first real push
MSGS=(
"Initial commit"
"Add core functionality"
"Add configuion system"
"Fix edge case in main loop"
"Add error handling"
"Update requirements"
"Add tests"
"Improve performance"
"Fix memory "
"Add CLI arguments"
"Update documentation"
"Fix config loading"
"Add logging"
"Refactor main module"
"Add type hints"
"Fix Windows compatibility"
"Optimize hot loop"
"Add config validation"
"Fix threading issue"
"Update README"
"Add FAQ section"
"Fix import error"
"Bump version to 1.1.0"
"Add config hot-reload"
"Release v1.2.0"
)
for i in $(seq 0 23); do
DAYS_AGO=$((60 - i * 2))
DATE=$(date -d "$DAYS_AGO days ago" +"%Y-%m-%dT%H:%M:%S" 2>/dev/null || date -v-${DAYS_AGO}d +"%Y-%m-%dT%H:%M:%S")
MSG="${MSGS[$((i % ${#MSGS[@]}))]}"
echo "$DATE" > .timestamp
git add -A
GIT_AUTHOR_DATE="$DATE" GIT_COMMITTER_DATE="$DATE" git commit -m "$MSG" --allow-empty 2>/dev/null
done
rm -f .timestamp
echo "Done — $((i+1)) commits created"