Skip to content

Comments

feat: add --ignore-git-check flag and error on uncommitted changes#105

Merged
maxim-uvarov merged 1 commit intomainfrom
git-safety-check
Jan 1, 2026
Merged

feat: add --ignore-git-check flag and error on uncommitted changes#105
maxim-uvarov merged 1 commit intomainfrom
git-safety-check

Conversation

@maxim-uvarov
Copy link
Member

Summary

  • numd run now errors if the target file has uncommitted changes (prevents accidental data loss)
  • Add --ignore-git-check flag to bypass this check when needed
  • Remove git check from clear-outputs (reversible operation, doesn't need protection)

Usage

# Default: errors if file has uncommitted changes
numd run file.md

# Bypass the check
numd run file.md --ignore-git-check

Test plan

  • All tests pass

Stacked on: #104

🤖 Generated with Claude Code

- By default, numd run now errors if the target file has uncommitted
  changes (prevents accidental data loss)
- Add --ignore-git-check flag to bypass this check when needed
- Remove git check from clear-outputs (reversible operation)
- Update toolkit.nu to use --ignore-git-check for test runs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Base automatically changed from config-api-eval to main January 1, 2026 02:55
@maxim-uvarov maxim-uvarov merged commit 8d7f24f into main Jan 1, 2026
@maxim-uvarov maxim-uvarov deleted the git-safety-check branch January 1, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants