Skip to content

clean / dirty / untracked #19

Open
@clembo590

Description

@clembo590

thanks for this plugin. it is awesome.
However I feel a little something is missing:

When the plugin run we have an information about

"git.dirty" which tells us that the build is being performed on a dirty branch.

However if there is a new file that is "untracked" then this boolean is still false and there is not way to really know if the state of the current branch is "clean".

Could you add a "git.untracked" that would be true if some files are untracked in the current branch.
Or you could add a "git.clean" that would be the opposite of dirty
(except that when there is an untracked file then "git.clean" would be false and "git.dirty" would be false)

usage example:
if "git.clean" is false then I would prevent developers from building the project except it project version ends with "SNAPSHOT"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions