Skip to content

More descriptive error message for checking out a snap with uncommitted files in git #67

@Drake-Eidukas

Description

@Drake-Eidukas

So, for fun, I made a file and marked it, then deleted it. I also manually edited the .cfg.json to see what that was all about.

Currently, the error message is just:

drake@element:~/workspace/test_base$ cfg snap checkout master
error: there are uncommitted files
'git status -s' output:
 M .cfg.json
D  .cfg_schemas/lol
 D lol/hh/lol.yaml

I think that the error message seems somewhat... barebones. Could be nice to update this to be more consistent with cfg / suggest how to fix the issues with modified / deleted, but it just feels weird to show a git message here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorThis isn't super important, but would be nice to refactor

    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