summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 287f860)
raw | patch | inline | side by side (parent: 287f860)
author | Petr Baudis <pasky@suse.cz> | |
Sat, 26 Nov 2005 22:12:44 +0000 (23:12 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Dec 2005 00:34:35 +0000 (16:34 -0800) |
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 <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
the --no-edit switch in the git-cherry-pick documentation since
we always default to no editing.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-cherry-pick.txt | patch | blob | history | |
Documentation/git-revert.txt | patch | blob | history | |
git-revert.sh | patch | blob | history |
index 26e04677972f410cbec93c72ba2210c28d1f39bc..5e0ef5ae0be005ad2da128f9304fe2d178d732d6 100644 (file)
SYNOPSIS
--------
-'git-cherry-pick' [-n] [-r] <commit>
+'git-cherry-pick' [--edit] [-n] [-r] <commit>
DESCRIPTION
-----------
<commit>::
Commit to cherry-pick.
+--edit::
+ With this option, `git-cherry-pick` will let you edit the commit
+ message prior committing.
+
-r::
Usually the command appends which commit was
cherry-picked after the original commit message when
index feebd81da5889da2e77dc8508f8b7e3d642e6214..f471037b97ad72fc098859e60ccfeb75b559d3a3 100644 (file)
SYNOPSIS
--------
-'git-revert' [-n] <commit>
+'git-revert' [--edit | --no-edit] [-n] <commit>
DESCRIPTION
-----------
<commit>::
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.
diff --git a/git-revert.sh b/git-revert.sh
index c1aebb159cab86f419ff2aaab2a8f1d9d79a9a72..5cb02b1ec2f8a128439039dbde442d03a8763baf 100755 (executable)
--- a/git-revert.sh
+++ b/git-revert.sh
usage () {
case "$me" in
cherry-pick)
- die "usage git $me [-n] [-r] <commit-ish>"
+ die "usage git $me [--edit] [-n] [-r] <commit-ish>"
;;
revert)
- die "usage git $me [-n] <commit-ish>"
+ die "usage git $me [--edit | --no-edit] [-n] <commit-ish>"
;;
esac
}