when did the doctor give river her diary
River Song (Doctor Who) "Let's Kill Hitler" establishes that Melody was trained by the Silence to kill the Doctor. At some point after regenerating in New York, Melody becomes Rory and Amy's childhood friend Mels (Maya Glace-Green) and grew up with them. When adult Mels (Nina Toussaint-White) is shot, and regenerates into her next incarnation (Alex Kingston), she proceeds to do what she was created for: assassinate the Doctor. Persuaded she will one day become River Song, who the Doctor cares deeply about and places in great trust, Melody chooses to resurrect the Doctor with her own regenerative energy, losing any future regenerations. The Doctor learns, however, that it is she who kills him in the future. While she is recovering in bed,the Doctor gives her the blank TARDIS-shaped/coloured diary, and in an epilogue it is revealed that Melody (now River) wants to study archaeology. At the end of "Closing Time", on the day she receives her doctorate, the Silence and Kovarian recapture her and trap her in the space suit in order to kill the Doctor as history will record. In the series finale "The Wedding of River Song", River refuses to kill the Doctor as she is supposed to, creating an alternate reality in which time has frozen and all realities are occurring at once. In order to restart time and repair reality, the two of them must touch. The Doctor marries River and convinces her to repair the timeline by letting her know that he plans to fake his own death and how. River goes to prison for his murder in order to corroborate the deception, though it is established that she regularly breaks out of prison to go on dates and adventures with him with the aid of hallucinogenic lipstick and other tricks.