From: Matthieu Moy <Matthieu.Moy@imag.fr>
To: git@vger.kernel.org
Cc: peff@peff.net, nisse@lysator.liu.se, Matthieu Moy <Matthieu.Moy@imag.fr>
Subject: [PATCH] Document 'git commit --no-edit' explicitly
Date: Fri, 2 Nov 2012 11:39:30 +0100 [thread overview]
Message-ID: <1351852770-13897-1-git-send-email-Matthieu.Moy@imag.fr> (raw)
In-Reply-To: <nnpq3wiaha.fsf@stalhein.lysator.liu.se>
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
I was tempted to merge the paragraph with --edit::, but I thought this
may add confusion. The use-cases for --edit and --no-edit are really
different so I went for a separate paragraph, right below the --edit one.
Documentation/git-commit.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 3acf2e7..44b4347 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -188,6 +188,11 @@ OPTIONS
commit log message unmodified. This option lets you
further edit the message taken from these sources.
+--no-edit::
+ Use the selected commit message without launching an editor.
+ For example, `git commit --amend --no-edit` amends a commit
+ without changing its commit message.
+
--amend::
Used to amend the tip of the current branch. Prepare the tree
object you would want to replace the latest commit as usual
--
1.8.0.319.g8abfee4
next prev parent reply other threads:[~2012-11-02 10:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 9:26 Wishlist: git commit --no-edit Niels Möller
2012-11-02 9:42 ` Matthieu Moy
2012-11-02 9:59 ` Jeff King
[not found] ` <CACnwZYe-za3Q0qvkfQ=qatB1-8eLUFA6ZzfS41yeqrV=8rVzGA@mail.gmail.com>
2012-11-02 12:45 ` Jeff King
2012-11-02 10:07 ` Niels Möller
2012-11-02 10:39 ` Matthieu Moy [this message]
2012-11-02 11:24 ` [PATCH] Document 'git commit --no-edit' explicitly Niels Möller
2012-11-02 11:29 ` Matthieu Moy
2012-11-02 11:53 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1351852770-13897-1-git-send-email-Matthieu.Moy@imag.fr \
--to=matthieu.moy@imag.fr \
--cc=git@vger.kernel.org \
--cc=nisse@lysator.liu.se \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).