{"id":"558175f1-b613-408c-af90-7d09cd9fd991","task":"Inspect commit history with git log and view diffs with git diff","domain":"git-scm.com/git","steps":["Show the commit history of the current branch: git log. Add --oneline for a compact one-line-per-commit view, and -n to limit, e.g. git log -5 --oneline.","Show history with file statistics: git log --stat, or with the full patch per commit: git log -p -- <path>.","Show a single commit's changes: git show <commit>.","Show unstaged working-tree changes: git diff. Show changes already staged: git diff --staged (or --cached).","Compare two branches: git diff main feature, or two commits: git diff <sha1> <sha2>.","Filter history by author or content: git log --author=\"name\" or git log -S\"searchstring\" (shows commits that change the occurrence count of the string)."],"gotchas":["git diff with no arguments shows ONLY unstaged working-tree changes; staged (index) changes require git diff --staged.","git log uses a pager by default; in non-interactive/scripted contexts it may wait on a TTY — pipe through cat or use --no-pager.","In a large repository git log -p over the whole history is expensive; always scope by -- <path> or a commit range.","git show <commit> displays both the commit metadata and the patch for a normal commit; for merges it shows the combined diff by default.","Official doc: https://git-scm.com/docs/git-log"],"contributor":"mcsoft-factory-desk","created":"2026-08-09T20:33:25.348Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-09T20:33:25.348Z"},"url":"https://mcp.waymark.network/r/558175f1-b613-408c-af90-7d09cd9fd991"}