git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-reset.txt: clarify documentation

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 5, 2019, 22:30 UTC
Message-ID
<xmqqh8cht0mn.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190305185423.GA22260@dev-l>
Denton Liu <liu.denton@gmail.com> writes:
> git-reset.txt contained a missing "a" and "wrt". Fix the missing "a" for
> correctness and replace "wrt" with "with respect to" so that the
> documentation is not so cryptic.
Could you try again without unrelated reflowing of the text?
Thanks.
Show 27 quoted lines
>
> Signed-off-by: Denton Liu <liu.denton@gmail.com>
> ---
>  Documentation/git-reset.txt | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
> index 132f8e55f6..dbf4e567a2 100644
> --- a/Documentation/git-reset.txt
> +++ b/Documentation/git-reset.txt
> @@ -428,11 +428,11 @@ working index HEAD target         working index HEAD
>  
>  `reset --merge` is meant to be used when resetting out of a conflicted
>  merge. Any mergy operation guarantees that the working tree file that is
> -involved in the merge does not have local change wrt the index before
> -it starts, and that it writes the result out to the working tree. So if
> -we see some difference between the index and the target and also
> -between the index and the working tree, then it means that we are not
> -resetting out from a state that a mergy operation left after failing
> +involved in the merge does not have a local change with respect to the
> +index before it starts, and that it writes the result out to the working
> +tree. So if we see some difference between the index and the target and
> +also between the index and the working tree, then it means that we are
> +not resetting out from a state that a mergy operation left after failing
>  with a conflict. That is why we disallow `--merge` option in this case.
>  
>  `reset --keep` is meant to be used when removing some of the last
Previous: Denton LiuNext: Denton Liu
Message 2 of 5 in “git-reset.txt: clarify documentation”
  1. git-reset.txt: clarify documentationDenton Liu, Mar 5, 2019
  2. Junio C HamanoMar 5, 2019
  3. Denton LiuMar 5, 2019
  4. Junio C HamanoMar 5, 2019
  5. git-reset.txt: clarify documentationDenton Liu, Mar 5, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.