Skip to contentSkip to conversation

git merge summary

U-Boot Alexander Holler 5 participants 12 messages Mar 28, 2010 – Mar 11, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

may I ask if there is reason why merge commits don't have a summary?

I find those summaries (enabled with git config [--global] merge.summary true) very hand to see what was changed with the merge commit.

Regards,

Alexander

#1 lore raw

Hi Alexander,

Quoted 1 line

may I ask if there is reason why merge commits don't have a summary?

Yes, you may. Actually this is a good question.

Quoted 2 lines

I find those summaries (enabled with git config [--global] merge.summary true) very hand to see what was changed with the merge commit.

I didn't even know about that feature, so thanks for poking us. Checking the documentation, it seems like the name will change soon however (man git-fmt-merge-msg):

merge.summary
Synonym to merge.log; this is deprecated and will be removed in the future.

But apart from that, I also like the feature. Wolfgang, what do you think?

Cheers
Detlev

Signature · 6 lines
Mit einem Leben wie dem meinen, Doktor - wer braucht da noch Traeume?
                                            - Alex Portnoy
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
#2 lore raw
Quoted 12 lines · In message <[email protected]> Detlev Zundel wrote:
Quoted 2 lines

may I ask if there is reason why merge commits don't have a summary?

Yes, you may. Actually this is a good question.

Quoted 2 lines

I find those summaries (enabled with git config [--global] merge.summary true) very hand to see what was changed with the merge commit.

I didn't even know about that feature, so thanks for poking us. Checking the documentation, it seems like the name will change soon however (man git-fmt-merge-msg):

Quoted 6 lines

merge.summary
Synonym to merge.log; this is deprecated and will be removed in the future.

But apart from that, I also like the feature. Wolfgang, what do you think?

I have no preference.

If there is an agreement (or at least no protests) we can add 'merge.log'.

Shall we?

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Prof:        So the American government went to IBM to come up with a
             data encryption standard and they came up with ...
Student:     EBCDIC!
#3 lore raw
In reply to Detlev Zundel

Hello,

may I ask again for opinions about enabling that feature?

Regards,

Alexander

Am 29.03.2010 11:32, schrieb Detlev Zundel:

Quoted 23 lines

Hi Alexander,

Quoted 1 line

may I ask if there is reason why merge commits don't have a summary?

Yes, you may. Actually this is a good question.

Quoted 2 lines

I find those summaries (enabled with git config [--global] merge.summary true) very hand to see what was changed with the merge commit.

I didn't even know about that feature, so thanks for poking us. Checking the documentation, it seems like the name will change soon however (man git-fmt-merge-msg):

merge.summary
Synonym to merge.log; this is deprecated and will be removed in the future.

But apart from that, I also like the feature. Wolfgang, what do you think?

Cheers
Detlev

#4 lore raw

Hi Alexander,

Quoted 1 line

may I ask again for opinions about enabling that feature?

I also would like to see it. Wolfgang, is there anything that you don't like about this option?

Cheers
Detlev

Signature · 8 lines
5.7: Practically speaking, what is the difference between arrays and pointers?
About the difference between alcohol and marijuana; they have different
characteristics, and that's not a problem if you don't mix them too carelessly.
                           - Infrequently Asked Questions in comp.lang.c
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
#5 lore raw

Dear Detlev Zundel,

Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 2 lines

may I ask again for opinions about enabling that feature?

I also would like to see it. Wolfgang, is there anything that you don't like about this option?

There is two things that make me hesitate:

1) I wonder if it might have negative side effects. If it was generally considered a good thing I would expect that it was set as default, but it ain't.

2) I don't know what exactly needs to be done. My understandaning is that I can either switch this on globally for all repositories I'm working with (which I do not like), or it needs to be set manually in each and every clone of the U-Boot repo where a merge might be done.

When I throw away a repo for some reason and start with a new clone, I can be pretty sure that I will forget to re-enable this.

What needs to be done about custodian repos etc.?

In other words, it sounds like a thing that causes effort and can go wrong nevertheless.

So I'd rather wait until either this option is used as defualt by some new version of git, or at least until there is a broader request and consensus among the custodians.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Marriage is like a cage; one sees the birds outside desperate to get
in, and those inside desperate to get out."               - Montaigne
#6 lore raw

Hi Wolfgang,

Quoted 6 lines

Dear Detlev Zundel,

Quoted 3 lines · In message <[email protected]> you wrote:
Quoted 2 lines

may I ask again for opinions about enabling that feature?

Quoted 8 lines
Quoted 2 lines

I also would like to see it. Wolfgang, is there anything that you don't like about this option?

There is two things that make me hesitate:

1) I wonder if it might have negative side effects. If it was generally considered a good thing I would expect that it was set as default, but it ain't.

Personally I cannot think of negative side effects. Checking recent linux commits, it seems Linus is using this himself[1] which would be a pro argument I guess.

Quoted 5 lines

2) I don't know what exactly needs to be done. My understandaning is that I can either switch this on globally for all repositories I'm working with (which I do not like), or it needs to be set manually in each and every clone of the U-Boot repo where a merge might be done.

As far as I can see, we should turn it on per repo so that (future) custodians would get the setting through cloning. Apart from that I even don't see anything against turning it on globally.

Quoted 2 lines

When I throw away a repo for some reason and start with a new clone, I can be pretty sure that I will forget to re-enable this.

Then we should enable it in "the master" repo from which you clone.

Quoted 1 line

What needs to be done about custodian repos etc.?

As far as I understand it, we cannot change anything in already cloned repositories, so every custodian would need to do this configuration. On the other hand we can add this setting (yes, I volunteer) on our git server for all repos, so future clones will get it.

Quoted 2 lines

In other words, it sounds like a thing that causes effort and can go wrong nevertheless.

It will cause effort, yes, alas I don't see what can go wrong. It will be a policy that we can never enforce for individual users, so there remains a chance that individuals will do merges without the setting.

On the other hand, I guess what really counts is whether _you_ (doing all practically relevant merges) use it or not. So essentially it is a question of whether you can add that in all of your repos.

Quoted 3 lines

So I'd rather wait until either this option is used as defualt by some new version of git, or at least until there is a broader request and consensus among the custodians.

Quoted 4 lines · In this thread you previously

If there is an agreement (or at least no protests) we can add 'merge.log'.

Shall we?

Have you become more pessimistic?

Cheers
Detlev

[1] http://git.denx.de/?p=linux-2.6-denx.git;a=commit;h=8cad7f06e3b1d3f9a28bb7385e8fc09d5e1bf84c

Signature · 8 lines
#!/usr/bin/perl
$c="print\"\#\!\/usr\/bin\/perl\
\\\$c\=\\\"\"\.quotemeta\(\$c\)\.\"\\\"\;\\n\$c;\"";
print"#!/usr/bin/perl\n\$c=\"".quotemeta($c)."\";\n$c;";
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
#7 lore raw
In reply to Detlev Zundel

Hi all,

Quoted 5 lines · In message <[email protected]> Detlev Zundel wrote:
Quoted 2 lines

may I ask again for opinions about enabling that feature?

I also would like to see it. Wolfgang, is there anything that you don't like about this option?

Do you have any comments or pros or cons for/against this request?

Thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How does a project get to be a year late?      ... One day at a time.
#8 lore raw
Quoted 7 lines · On Sunday, January 09, 2011 11:25:52 Wolfgang Denk wrote:
Quoted 4 lines · Detlev Zundel
Quoted 1 line

may I ask again for opinions about enabling that feature?

I also would like to see it. Wolfgang, is there anything that you don't like about this option?

Do you have any comments or pros or cons for/against this request?

this feature sounds like something end developers enable in their .git/config (or ~/.gitconfig). i dont think it's something that gets enabled in the remote repos we push to. which means it's up to Wolfgang for the most part to enable it on his system since he is about the only guy doing the merges.

as for the actual request, it doesnt matter to me either way. ive found the output to be neither useful nor "blocking" in any way.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110110/0452b5e9/attachment.pgp

#9 lore raw
In reply to Wolfgang Denk

Hi Wolfgang,

Quoted 10 lines

Hi all,

Quoted 5 lines · In message <[email protected]> Detlev Zundel wrote:
Quoted 2 lines

may I ask again for opinions about enabling that feature?

I also would like to see it. Wolfgang, is there anything that you don't like about this option?

Do you have any comments or pros or cons for/against this request?

I'll repeat my answer given in this thread previously[1] for the benefit of the now wider audience:

Personally I cannot think of negative side effects. Checking recent linux commits, it seems Linus is using this himself which would be a pro argument I guess.

Also as I wrote much earlier, the new format gives me additional valuable information that is useful to me. So I'm all for it.

Cheers
Detlev

[1] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/91279

Signature · 9 lines
To summarize:  It is a well known and lamented fact  that those people who
most want to  rule people are,  ipso facto, those  least suited  to do it.
To summarize the summary: anyone who is capable of getting themselves made
President should on no account be allowed to do the job.
                              -- The Hitchhikers Guide To The Galaxy
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
#10 lore raw

Hi Wolfgang,

Quoted 10 lines · On Wednesday 12 January 2011 18:47:45 Detlev Zundel wrote:
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

may I ask again for opinions about enabling that feature?

I also would like to see it. Wolfgang, is there anything that you don't like about this option?

Do you have any comments or pros or cons for/against this request?

I'll repeat my answer given in this thread previously[1] for the benefit of the now wider audience:

Quoted 6 lines

Personally I cannot think of negative side effects. Checking recent linux commits, it seems Linus is using this himself which would be a pro argument I guess.

Also as I wrote much earlier, the new format gives me additional valuable information that is useful to me. So I'm all for it.

Yes, I also think its a good idea. Lets give it a try.

Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

#11 lore raw

Hello all,

on that topic I've just seen a message from Linus which includes some thoughts from him on that topic:

https://lkml.org/lkml/2011/3/10/538

In short "Now, I admit that it's a git usability bug ...". Ok, he doesn't refer actually to a missing summary, but nevertheless I found that message/thread informational.

Just to come up with that topic again. ;)

Regards,

Alexander Holler