Skip to content

CommitOwn's default mode commits a staged removal as an add when the file still exists on disk #3184

Backlog

Description

@m8ryx

After git rm --cached <path> plus a .gitignore entry (untrack, keep on disk), CommitOwn.ts -m … -- <path> commits the file as it is on disk: it re-adds it, so the commit does the opposite of what was staged. Its message still describes an untracking.

--staged handles this correctly, but the default mode gives no warning.

Suggest the default mode refuse, with a hint to use --staged, when a named path is staged as deleted but present on disk. Hit twice in one session; once it committed private record rows into a backup repo under a message claiming the opposite.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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