From: Junio C Hamano <gitster@pobox.com>
To: Jay Soffian <jaysoffian@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: Merge commit subjects git.git
Date: Mon, 19 Jul 2010 09:31:58 -0700 [thread overview]
Message-ID: <7vpqyjph4x.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <AANLkTikavL0DH8FgFxBw7hbGLtj2tqxnP-BT77zo5FJT@mail.gmail.com> (Jay Soffian's message of "Sun\, 18 Jul 2010 04\:22\:25 -0400")
Jay Soffian <jaysoffian@gmail.com> writes:
> Color me curious, but why do the merge commit message in git.git
> sometimes look like this:
The merge messages that are autogenerated by "git merge" (rather, "git
fmt-merge-msg") are optimized for Linus's workflow ;-) and hasn't changed
much during the past 4-5 years.
> Merge branch 'jn/paginate-fix'
You have _one_ primary integration branch (well, by definition, there
should be only one "primary") called "master", and when you merge into
that branch you are merging work done by a side branch that has been
cooking. You get a terse "Merge branch x", "Merge $URL", etc. without
"into".
> Merge remote branch 'ko/master' into jc/read-tree-cache-tree-fix
You are not supposed to merge the integration branch into topics without a
very good reason. Again, because by default the tool assumes you have one
primary integration branch, merging into a branch that is not "master"
gets "into ..." so that it will later stand out in the output of "git log"
and "git shortlog".
I sometimes/often add some comments explaining why I needed the merge to
such a merge with "commit --amend" (the particular one you noticed,
jc/read-tree-cache-tree-fix, doesn't have it but I should have. The topic
was about fixing an ancient bug and I wanted an early conflict resolution
before bringing the fix to more up-to-date codebase).
> Also, the "Sync with 1.7.1.1" merges are I guess are from something like:
>
> git merge -s ours -m "Sync with 1.7.1.1" maint
I almost never use "-s ours"; the only exception is when fixing mistakes,
and "merging all the fixes that accumulated on 'maint' to 'master'" is
certainly not an example of "fixing mistakes".
This "Sync with 1.7.1.1" is an example of me using "commit --amend" to
note the exact reason why this merge of 'maint' to 'master' was made---"to
make sure that we have all the fix in the last maintenance release in the
development version". Because the fixes to 1.7.1.1 were all cooked first
in "master" and then merged to "maint", the result of this particular
merge didn't change the tree of "master", but that is not always the case.
next prev parent reply other threads:[~2010-07-19 16:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-18 8:22 Merge commit subjects git.git Jay Soffian
2010-07-18 15:33 ` Thomas Rast
2010-07-18 16:18 ` Ævar Arnfjörð Bjarmason
2010-07-18 16:56 ` Sverre Rabbelier
2010-07-18 17:22 ` Ævar Arnfjörð Bjarmason
2010-07-18 18:03 ` Ilari Liusvaara
2010-07-19 14:10 ` Nicolas Sebrecht
2010-07-19 16:31 ` Junio C Hamano [this message]
2010-07-19 17:23 ` Jay Soffian
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=7vpqyjph4x.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jaysoffian@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.
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).