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

[PATCH] Document git-reset defaults to HEAD if no commit is given

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Jan 4, 2008, 09:53 UTC
Message-ID
<e5bfff550801040153m433d9880g4a7a6d4168d5365f@mail.gmail.com>
Signed-off by: Marco Costalba <mcostalba@gmail.com>
---
 Documentation/git-reset.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 050e4ea..69722d1 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -9,7 +9,7 @@ SYNOPSIS
 --------
 [verse]
 'git-reset' [--mixed | --soft | --hard] [-q] [<commit>]
-'git-reset' [--mixed] [-q] <commit> [--] <paths>...
+'git-reset' [--mixed] [-q] [<commit>] [--] <paths>...

 DESCRIPTION
 -----------
@@ -49,7 +49,7 @@ OPTIONS
 	Be quiet, only report errors.

 <commit>::
-	Commit to make the current HEAD.
+	Commit to make the current HEAD. If not given defaults to HEAD.

 Examples
 --------
-- 
1.5.4.rc2.20.gab44
Next: Junio C Hamano
Message 1 of 2 in “Document git-reset defaults to HEAD if no commit is given”
  1. Document git-reset defaults to HEAD if no commit is givenMarco Costalba, Jan 4, 2008
  2. Junio C HamanoJan 5, 2008

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.