Skip to content

For files present on disk, show contents in git #1

Description

@akavel

When file exists on disk, but not in shadow git repo, and I want it, I get an error (lines as of commit a57162c):

detect .gitconfig
C:\prog\mana\src\mana.nim(14) mana
C:\prog\mana\src\mana.nim(138) main
C:\prog\mana\src\mana.nim(229) CHECK
C:\prog\mana\src\mana.nim(160) die
Error: unhandled exception: file expected absent, but found on disk: home/.gitconfig [CatchableError]

and shadow git repo contains untracked new contents, while I'd prefer it to show as untracked the old contents from disk, so that I can easily add the file into shadow repo if I want so.

[LATER] As a more advanced version, maybe I'd like to see the old contents staged, and the new contents as working dir, so that I could quickly and easily also see what's different.

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