From: Julia Evans Date: Wed, 10 Sep 2025 19:14:28 +0000 (+0000) Subject: doc: git-checkout: split up restoring files section X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bfe7b17c253eaeefc024ed7fef80787dd80d45fd;p=thirdparty%2Fgit.git doc: git-checkout: split up restoring files section From user feedback: one user mentioned that "When the (most often a commit) is not given" is confusing since it starts with a negative. Restructuring so that `git checkout main file.txt` and `git checkout file.txt` are separate items will help us simplify the sentence structure a lot. As a bonus, it appears that `-f` actually only applies to one of those forms, so we can include fewer options, and now the structure of the DESCRIPTION matches the SYNOPSIS. Signed-off-by: Julia Evans Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-checkout.adoc b/Documentation/git-checkout.adoc index 215fe40889..afc1880365 100644 --- a/Documentation/git-checkout.adoc +++ b/Documentation/git-checkout.adoc @@ -12,8 +12,8 @@ git checkout [-q] [-f] [-m] [] git checkout [-q] [-f] [-m] --detach [] git checkout [-q] [-f] [-m] [--detach] git checkout [-q] [-f] [-m] [[-b|-B|--orphan] ] [] -git checkout [-f] [--] ... -git checkout [-f] --pathspec-from-file= [--pathspec-file-nul] +git checkout [--] ... +git checkout --pathspec-from-file= [--pathspec-file-nul] git checkout [-f|--ours|--theirs|-m|--conflict=