Skip to content

Proposal: Exclude generated files from code repository #8

@iperdomo

Description

@iperdomo

Context

The project used Xtend to generate Java source code. Those files under *xtend-gen* folders are almost always modified.
After fresh clone and compilation you get 68 modified files without any other intervention:

git status | grep -E '.*modified:.*xtend-gen*.*\.java$' | wc -l
68

The modifications are a full rewrite of the files, e.g.

git diff kim/org.integratedmodelling.kim/xtend-gen/org/integratedmodelling/kim/validation/KimValidator.java | diffstat
 KimValidator.java | 6180 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------------------
 1 file changed, 3090 insertions(+), 3090 deletions(-)

Proposal

Since those are generated files, they shouldn't be tracked and part of the code repository.

  • Remove those files from source code
  • Include xtend-gen folders to .gitignore

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions