Skip to content

git ignore gen #2

@rbi13

Description

@rbi13

gi <project-types>... command to auto-generate standardized gitignore files based on a project's libraries and tools used.

function gi {
# clone gitingore project if not already present (this folder should be added to env/.gitignore)
## git clone --depth 1 git@github.com:github/gitignore.git

# accept 'types' as arguments 'gi java gradle ...'

# look these up in the current gitignore file
## (use awk to list types used in current file 'gi java gradle')

# grab the content from the gitignore/ project for types missing from the previous step

# insert content into gitignore file and updated 'gi ...' line (use sed)

# future: potentially infer types;  have a refresh method
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions