From: Vishal Verma <vishal.l.verma@intel.com>
To: <git@vger.kernel.org>
Cc: "Rafael Ascensão" <rafa.almas@gmail.com>,
"Vishal Verma" <vishal.l.verma@intel.com>
Subject: [PATCH] Documentation/merge-options: clarify --squash behavior
Date: Wed, 24 Apr 2019 15:22:12 -0600 [thread overview]
Message-ID: <20190424212212.10039-1-vishal.l.verma@intel.com> (raw)
Add a note to the --squash option for git-merge to clarify its behavior
with respect to --commit. When --squash is supplied, 'option_commit' is
silently dropped. This can be surprising to a user who tries to override
the no-commit behavior of squash using --commit explicitly.
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
There may be an argument to make --commit 'just work' with squash, but
that might involve changing option_commit from OPT_BOOL to something
that can distinguish between the default, what's requested on the
command line, or the --no- version.
Documentation/merge-options.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/merge-options.txt b/Documentation/merge-options.txt
index 92a7d936c1..0fd97720d8 100644
--- a/Documentation/merge-options.txt
+++ b/Documentation/merge-options.txt
@@ -95,6 +95,9 @@ merge.
+
With --no-squash perform the merge and commit the result. This
option can be used to override --squash.
++
+With --squash, a --commit option does not make sense, and will be ignored
+(HEAD will not be moved in spite of --commit).
-s <strategy>::
--strategy=<strategy>::
--
2.20.1
next reply other threads:[~2019-04-24 21:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-24 21:22 Vishal Verma [this message]
2019-04-25 4:16 ` [PATCH] Documentation/merge-options: clarify --squash behavior Junio C Hamano
2019-04-25 16:26 ` Vishal Verma
2019-04-26 21:17 ` [PATCH v2] builtin/merges: clarify --squash behavior with --commit vishal
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190424212212.10039-1-vishal.l.verma@intel.com \
--to=vishal.l.verma@intel.com \
--cc=git@vger.kernel.org \
--cc=rafa.almas@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).