[ 
https://jira.codehaus.org/browse/MBUILDNUM-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Frantisek Mantlik updated MBUILDNUM-93:
---------------------------------------

    Attachment: CreateMojo.java.patch

Updated patch uses git log instead of git whatchanged. This gives better 
results on some edge situations.
                
> Generate buildnumber as a commit sequence number for Git
> --------------------------------------------------------
>
>                 Key: MBUILDNUM-93
>                 URL: https://jira.codehaus.org/browse/MBUILDNUM-93
>             Project: Mojo Build Number Maven Plugin
>          Issue Type: Improvement
>            Reporter: Frantisek Mantlik
>            Priority: Minor
>         Attachments: CreateMojo.java.patch
>
>
> New feature is offered to compute Subversion-style build numbers for Git 
> repositories.
> Build number increasing sequence is desired e.g. for correct updates 
> recognition of Netbeans modules.
> Proposed patch providing this functionality is attached.
> When new parameter gitCountCommits is set to true, patched info method in 
> CreateMojo counts all existing commits in the repository and assigns the 
> result as new build number. In addition, when useLastCommittedRevision is set 
> to true, HEAD revision of the working directory is found and commit sequence 
> number of it is found and assigned as build number instead.
> The patch works fine with my projects - when Subversion repository was 
> converted to Git, plugin created identical build numbers for all modules.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to