Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
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.
Issue Links
- is duplicated by
-
MBUILDNUM-104
Sequential buildnumber with git SCM based on number of commits
-
Updated patch uses git log instead of git whatchanged. This gives better results on some edge situations.