nexxeln

nexxeln / git-hunk

Public

cli for non-interactive hunk staging

34
0
100% credibility
Found Mar 23, 2026 at 34 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

git-hunk is a command-line helper that scans code changes, lets you select precise small sections non-interactively, and stages or commits them for project version control.

How It Works

1
📂 Open your project folder

You've edited some files and have a mix of changes you want to save only specific parts of.

2
🔍 List all tiny changes

The tool shows you every small group of lines that changed, each with a simple name and preview.

3
🎯 Pick exactly what to save

Choose the specific groups or line ranges you want by their names, feeling in full control.

4
👁️ Preview your selection

See a clear picture of just those picked changes as they'll be saved.

5
💾 Save your picks

Apply the selection to ready those exact changes for your project update.

6
📝 Bundle into a version

Create a new saved point in your project history with only what you chose.

🎉 Clean update ready!

Your project now has a precise snapshot of changes, safe and organized just how you wanted.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 34 to 34 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is git-hunk?

git-hunk is a Rust CLI for non-interactive git hunk staging, letting you skip git add -p's prompts entirely. Scan diffs to get snapshot IDs, inspect hunks or changes with show, resolve file:line hints to selectors, then stage, unstage, or commit precise hunks, changes, or line ranges via JSON-friendly commands. Built for cli non interactive automation like gh cli non interactive or copilot cli non interactive scripting.

Why is it gaining traction?

It delivers stable change keys and hunk selectors that persist across rescans, unlike fragile git hunk edit mode outputs, making git hunk header parsing reliable in loops. Dry-run previews, validation for stale snapshots, and compact JSON suit cli github actions or codex cli non interactive pipelines, where manual git hunk edit fails.

Who should use this?

DevOps engineers scripting cli github push, repo clones, or token-based workflows on cli github ubuntu/linux. AI agent builders handling git hunk edits in GitHub Copilot CLI non-interactive flows. Pipeline operators mimicking aws cli non interactive output for git in CI/CD.

Verdict

With 34 stars and 1.0% credibility score, it's immature but has crisp docs, cargo installs, and auto-released binaries. Worth a spin for non-interactive hunk needs; skip for production until stars climb.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.