{"thread":{"id":"50245","subject":"Minor typos in the documentation for git checkout <branch>","startedAt":"2019-01-17T00:17:21Z","lastAt":"2019-01-17T00:17:21Z","messageCount":1,"participants":["Rory O’Kane"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"366892","messageId":"CAD_ag1MODHkfkMyaovg2JgcsX-=Tk6+BHFSYxwE8g5HGhvZ-1g@mail.gmail.com","threadId":"50245","inReplyTo":null,"subject":"Minor typos in the documentation for git checkout <branch>","fromName":"Rory O’Kane","fromEmail":"rory@roryokane.com","sentAt":"2019-01-17T00:17:07Z","receivedAt":"2019-01-17T00:17:21Z","isPatch":false,"sender":{"key":"rory@roryokane.com","avatar":null},"body":"I noticed some errors in one paragraph of the documentation for the <branch>\nargument of git-checkout. A convenient link to that documentation:\nhttps://git-scm.com/docs/git-checkout#git-checkout-ltbranchgt\n\nThis is the current AsciiDoc source for that paragraph:\n\n    You can use the `\"@{-N}\"` syntax to refer to the N-th last\n    branch/commit checked out using \"git checkout\" operation. You may\n    also specify `-` which is synonymous to `\"@{-1}`.\n\nThat source comes from Documentation/git-checkout.txt:\nhttps://github.com/git/git/blob/77556354bb7ac50450e3b28999e3576969869068/Documentation/git-checkout.txt#L290-L292\n\nI suggest changing that source to this:\n\n    You can use the `\"@{-<n>}\"` syntax to refer to the <n>th last\n    branch/commit checked out using the \"git checkout\" operation. You\n    may also specify `\"-\"`, which is synonymous to `\"@{-1}\"`.\n\nThese are the changes:\n\n- Added the missing closing double quote to `\"@{-1}` at the end.\n- Added the word “the” before ‘\"git checkout” operation’.\n- Added quotes around “-”, to make it more visible and consistent with the\n  other syntax in the paragraph.\n- Added comma before “which”.\n- For consistency, used the angle bracket style of placeholder also used by\n  the explanation of the “@{-<n>}, e.g. @{-1}” syntax (see link) within the\n  documentation for gitrevisions (see link).\n  [gitrevisions source]:\nhttps://github.com/git/git/blob/77556354bb7ac50450e3b28999e3576969869068/Documentation/revisions.txt#L94-L96\n  [gitrevisions rendered]:\nhttps://git-scm.com/docs/gitrevisions#gitrevisions-em-ltngtemegem-1em\n\n(This is my first email to the Git mailing list; I hope I did it right.)\n"}]}