Feature request: list commits for merge

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Feature request: list commits for merge

nanos
Hi,

I would love it, if the default merge commit message were to contain a list of the commits in the branch.

This would be most useful, e.g. when using the Git-Flow integration, where the default commit message is simply 'finish %featurename%'

if this could also include the list of commits that would make the message so much more helpful.

An example of a helpful output, as it could be generated using the prepare-commit-msg hook:

    echo "Merge details:" >> $1  
    echo "" >> $1  
    git log --pretty=format:'%s' --date=local ORIG_HEAD..MERGE_HEAD >> $1 ;

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Feature request: list commits for merge

WORMSS
Is this not a duplication of information? Since you still have access to all the of commit messages?
Though I could think that might be useful if you were squashing the merge.
But I can't remember if that option is available to you in Git-Flow or Github-Flow

- Colin.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Feature request: list commits for merge

SmartGit mailing list
In reply to this post by nanos
> I would love it, if the default merge commit message were to contain a list
> of the commits in the branch.

Isn't that redundant information? You can always check the Log quickly to see which commits are contained (including merge commits and their merge sources, again).

--
Best regards,
Marc Strapetz
syntevo GmbH
http://www.syntevo.com
http://blog.syntevo.com


11/04/2014 13:10 - nanos [hidden email] [smartgit] wrote:

> Hi,
>
>
> I would love it, if the default merge commit message were to contain a list
> of the commits in the branch.
>
>
> This would be most useful, e.g. when using the Git-Flow integration, where
> the default commit message is simply 'finish %featurename%'
>
>
> if this could also include the list of commits that would make the message
> so much more helpful.
>
>
> An example of a helpful output, as it could be generated using the
> prepare-commit-msg hook:
>
>
>     echo "Merge details:" >> $1  
>     echo "" >> $1  
>     git log --pretty=format:'%s' --date=local ORIG_HEAD..MERGE_HEAD >> $1 ;
>
>
> Thanks!
>
>
>
>
>
>
> --
> View this message in context:
> http://smartgit.3668570.n2.nabble.com/Feature-request-list-commits-for-merge-tp7575372.html
> Sent from the SmartGit mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Feature request: list commits for merge

nanos
In reply to this post by WORMSS
Hi,

thanks for your replies.

Sure, this would be duplicate and redundant. However, in some cases it would still be very helpful:

If I want to look at just one commit to get an idea of what's happened without having to go through all the parent commits or changes.
Loading...