Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint โ€” Workflow

โญ beginnerโณ 20 min read๐Ÿ“ Lesson 77 of 85

A repo auditor: linear-history checks, rebase-vs-merge reasoning, and a change-classification helper.

Checkpoint: the repo auditor

Task: implement in Solution:

  1. static bool IsLinear(List<string> commits) โ€” true when no commit appears twice (a fork/re-entry breaks linearity); empty list โ†’ true.
  2. static string DescribeChange(string before, string after) โ€” "added" when before is empty, "removed" when after is empty, "modified" otherwise.
  3. static List<string> StaleBranches(Dictionary<string, string> branchTip, string mainTip, List<string> mergedIntoMain) โ€” branch names whose tip is not main's tip AND are not in mergedIntoMain, sorted alphabetically.