949 B
949 B
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| challenge | The Historian | 75 | 25 | 3 |
The Historian
[INCOMING — Mission Control, Earth]
Cadet, the repo in your working directory contains five commits from a previous mission. We need a historian's eye on it.
Two commands today:
git log --oneline— compact one-line-per-commit historygit show <hash>— show what a commit changedYour script must produce two files:
log.txt— full one-line logbreach-commit.txt— short hash of the commit whose message mentionsBREACHHint: pipe the log through
grep BREACH | awk '{print $1}'to extract the short hash from the matching line.[END TRANSMISSION]
Your Task
In starter/starter.sh, capture the full log and the breach commit's
short hash.
Objectives
log.txtlists all 5 commits, one per linebreach-commit.txtcontains the short hash of the BREACH commit