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

[PATCH 9/17] Add documentation for git-revert and git-cherry-pick.

From
NWNikolai Weibull <mailing-lists.git@rawuncut.elitemail.org>
Date
Dec 8, 2005, 23:28 UTC
Message-ID
<11340844853882-git-send-email-mailing-lists.git@rawuncut.elitemail.org>
In-Reply-To
<11340844851758-git-send-email-mailing-lists.git@rawuncut.elitemail.org>
* Added the -e option to the documentation of git-cherry-pick.
* Added the -e and --no-commit option to git-revert.
* Removed redundant case expression for -n as --no-edit (already taken by
  --no-commit).
Signed-off-by: Nikolai Weibull <nikolai@bitwi.se>
---
 Documentation/git-cherry-pick.txt |    2 +-
 Documentation/git-revert.txt      |    4 ++--
 git-revert.sh                     |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
d4736aca7d9e34a56c0c32130af057bc2b9f0dfa
diff --git a/Documentation/git-cherry-pick.txt b/Documentation/git-cherry-pick.txt
index 744f2c9..4f323fa 100644
--- a/Documentation/git-cherry-pick.txt
+++ b/Documentation/git-cherry-pick.txt
@@ -20,7 +20,7 @@ OPTIONS
 <commit>::
 	Commit to cherry-pick.
 
---edit::
+-e|--edit::
 	With this option, `git-cherry-pick` will let you edit the commit
 	message prior committing.
 
diff --git a/Documentation/git-revert.txt b/Documentation/git-revert.txt
index f471037..e27c680 100644
--- a/Documentation/git-revert.txt
+++ b/Documentation/git-revert.txt
@@ -20,7 +20,7 @@ OPTIONS
 <commit>::
 	Commit to revert.
 
---edit::
+-e|--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.
@@ -29,7 +29,7 @@ OPTIONS
 	With this option, `git-revert` will not start the commit
 	message editor.
 
--n::
+-n|--no-commit::
 	Usually the command automatically creates a commit with
 	a commit log message stating which commit was reverted.
 	This flag applies the change necessary to revert the
diff --git a/git-revert.sh b/git-revert.sh
index 5cb02b1..9d499c4 100755
--- a/git-revert.sh
+++ b/git-revert.sh
@@ -38,7 +38,7 @@ do
 	-e|--e|--ed|--edi|--edit)
 		edit=-e
 		;;
-	-n|--n|--no|--no-|--no-e|--no-ed|--no-edi|--no-edit)
+	--n|--no|--no-|--no-e|--no-ed|--no-edi|--no-edit)
 		edit=
 		;;
 	-r|--r|--re|--rep|--repl|--repla|--replay)
-- 
0.99.9l
Next: Nikolai Weibull
Message 1 of 2 in “Add documentation for git-revert and git-cherry-pick.”
  1. 9/17 Add documentation for git-revert and git-cherry-pick.Nikolai Weibull, Dec 8, 2005
  2. 10/17 Add documentation for the --topo-order option to git-show-branch.Nikolai Weibull, Dec 8, 2005

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.