From 8bf14d6ef9245f3b81d24cb7725a868f62343277 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 26 Nov 2005 23:12:44 +0100 Subject: Document the --(no-)edit switch of git-revert and git-cherry-pick This switch was not documented properly. I decided not to mention the --no-edit switch in the git-cherry-pick documentation since we always default to no editing. Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- Documentation/git-revert.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Documentation/git-revert.txt') diff --git a/Documentation/git-revert.txt b/Documentation/git-revert.txt index feebd81da5..f471037b97 100644 --- a/Documentation/git-revert.txt +++ b/Documentation/git-revert.txt @@ -7,7 +7,7 @@ git-revert - Revert an existing commit. SYNOPSIS -------- -'git-revert' [-n] +'git-revert' [--edit | --no-edit] [-n] DESCRIPTION ----------- @@ -20,6 +20,15 @@ OPTIONS :: Commit to revert. +--edit:: + With this option, `git-revert` will let you edit the commit + message prior committing the revert. This is the default if + you run the command from a terminal. + +--no-edit:: + With this option, `git-revert` will not start the commit + message editor. + -n:: Usually the command automatically creates a commit with a commit log message stating which commit was reverted. -- cgit v1.2.3