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

Re: [PATCH] Documentation, git reset: fix typo.

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 19, 2013, 17:16 UTC
Message-ID
<20130719171659.GY14690@google.com>
In-Reply-To
<1374251184-24095-1-git-send-email-stefanbeller@googlemail.com>
Stefan Beller wrote:
Show 9 quoted lines
> --- a/Documentation/git-reset.txt
> +++ b/Documentation/git-reset.txt
> @@ -9,7 +9,7 @@ SYNOPSIS
>  --------
>  [verse]
>  'git reset' [-q] [<tree-ish>] [--] <paths>...
> -'git reset' (--patch | -p) [<tree-sh>] [--] [<paths>...]
> +'git reset' (--patch | -p) [<tree-ish>] [--] [<paths>...]
>  'git reset' [--soft | --mixed | --hard | --merge | --keep] [-q] [<commit>]
Sure.  Though these days it might make more sense to say
	'git reset' [--soft | --mixed | --hard | --merge | --keep] <commit> [--]
	'git reset' [<tree>] [--] <path>...
	'git reset' (--patch | -p) [<tree>] [--] [<path>...]

since commands accept a commit or tag where a tree is expected pretty much universally.

Hope that helps, Jonathan

Previous: Stefan Beller
Message 3 of 3 in “Typo in git-reset man page.”
  1. Ibrahim M. GhazalJul 19, 2013
  2. Documentation, git reset: fix typo.Stefan Beller, Jul 19, 2013
  3. Jonathan NiederJul 19, 2013

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.