threads / patch / 11469

patchDocument git-reset defaults to HEAD if no commit is given

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

## tl;dr

2 messages between Jan 4, 2008 and Jan 5, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Marco Costalba· Jan 4, 2008, 09:53 UTC · lore
Signed-off by: Marco Costalba <mcostalba@gmail.com>
---
 Documentation/git-reset.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Show changes to Documentation/git-reset.txt +2 −2
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

← back to recent threads