Skip to content

Releases: kodelint/git-selective-ignore

v0.2.0

Choose a tag to compare

@kodelint kodelint released this 31 Dec 19:50
7cb9b35
feat: oop refactor and enhancements

Git Selective Ignore – v0.1.1 Initial Release

Choose a tag to compare

@kodelint kodelint released this 16 Aug 20:40

Overview

Git Selective Ignore is a Rust-based CLI tool that allows developers to automatically ignore sensitive, temporary, or environment-specific lines of code in Git repositories. It ensures that secret keys, debug statements, and temporary code never end up in Git history while keeping your workflow seamless.

Features

  • Initialize a repository for selective ignore patterns (git-selective-ignore init)
  • Add ignore patterns by file or globally (--pattern-type line-regex, line-range, block-start-end)
  • Install Git hooks for automatic processing on commit (git-selective-ignore install-hooks)
  • List all configured ignore patterns (git-selective-ignore list)
  • Check repository for violations before committing (git-selective-ignore status)
  • Automatically process and remove ignored content during commits while restoring workspace content

Benefits

  • Keeps sensitive or temporary code out of Git history
  • Supports multiple ignore pattern types (line regex, line ranges, block start/end)
  • Works for specific files or globally across the repository
  • Provides detailed status reports and summaries for easy verification

Usage

Typical workflow:

  • Initialize repository for selective ignore
  • Add ignore patterns for sensitive content
  • Install Git hooks for automatic pre-commit and post-commit processing
  • Stage and commit files normally; ignored content will not appear in Git history
  • See the Usage Guide for detailed examples.

Notes:

  1. Initial release. Feedback and contributions are welcome.
  2. Supports macOS platform; Rust 1.70+ recommended.