Who changed the line for that case?
A line changed in your team's file, and you do not know who or why? This lesson shows where to look before asking anyone.
The scene
On Tuesday evening, at her kitchen table, Huda opened the City Court's page on her phone. She was a witness: from her balcony she had seen a wall fall, and she would tell the judge. The court's daily hearing schedule lists the cases the judge hears next day, each with a number, a hall and an hour. Her line read "1415/2026, Hall 3, 11:00". Above it: "1451/2026, Hall 5, 11:00". She read both twice and smiled: same digits, different order. On the back of the leave slip her manager had signed, she wrote: "Hall 3. 11 o'clock."
On Wednesday at 10:45 she reached Hall 3, the room where the judge sits, and found it empty. A passing clerk said: "Case 1415 was in Hall 5, at ten. No witness came, so the judge postponed the session."
She showed him her phone: "I took a day off work and came fifteen minutes early."
At 11:15 the complaints reached Ibrahim, the head clerk in charge of the court's files and dates. He wanted the page fixed and every complaint answered by the two o'clock closing.
He called in Najla, who edits the schedule, and Hussam from the IT office. "Who changed the line for case 1415?"
"Maybe Faris, the new man," Najla said. "Yesterday he asked me where the schedule file was."
"Before anyone's name goes in a reply," Hussam said, "give me five minutes."
"The court's pages come from files kept in a on : the latest files, and behind them every state they have passed through. Each line here is a : someone saved the whole project's state, with who, when and a sentence they wrote."
He filtered the list to the schedule file. Faris was on no line. The last change to the 1415 line read:
Najla. Tuesday. 1:20 pm. "update".
He opened its against the commit before. A red line, "1415/2026, Hall 5, 10:00", and under it a green one, "1415/2026, Hall 3, 11:00". "Red was removed, green added."
Najla put her hand to her mouth. "I don't remember that line."
"Why did you change it?" Ibrahim asked.
Hussam pointed at the message, "update". The reason belongs in the ; this one gave none.
In her email Najla found the administration's memo from Tuesday: "Case 1451/2026 alone moves on Wednesday to Hall 3, same hour."
At 12:40 she saved the fix as a new commit, writing the message slowly: "Return case 1415 to Hall 5, 10:00; move only case 1451 to Hall 3, per the administration's memo of Tuesday. The previous commit changed the wrong case: the numbers look alike." The old commit, mistake and all, stayed beneath it. Hussam published the corrected page.
At 1:50 a correction notice went up, and the last reply went out.
Ibrahim phoned Huda with the new date. She said: "My leave slip is still in my bag, Hall 3 on the back. I'll ask my manager for a new one and copy your page onto it."
"Write what I tell you now," Ibrahim said.
When the office emptied, Najla went over to Faris. "I said your name this morning, before I knew anything."
He looked at her, then pushed the next chair over. "Then show me where the schedule file is. I still don't know."
The idea
A repository's record tells you who changed a line, when, and what it said before.
- : the project's folder, with every state its files have been through.
- : a deliberate save of the whole project, with name, time and message.
- : a comparison of two commits that changes neither: red removed, green added.
- : where the reason goes. "Update" leaves it blank.
If a line you rely on changed, read its diff and message, then ask the author what the message left out.
Try it yourself
- Open a on , yours or a public one, and list its commits: each shows a name, a time and a message.
- Pick one whose message is a single word. Does it tell you why?
- Open it, read the red and green lines, and go back: the commit before it is still there.
- In your repository, change a sentence and save it with a message saying why. It tops the list, with your name and the time.
Where this fits
You can now read a repository's record. If a colleague edits your file the same day, the next lesson protects both your work.