git-stage.sh
This file
Path
examples/git-stage.sh
12 lines · 271 bytes · Shell
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 6837ed2 point at it.
feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#661)dependabot[bot]before adoption6837ed2
lines 1–12why, one step back1#!/bin/bash23ADD="Add"4RESET="Reset"56ACTION=$(gum choose "$ADD" "$RESET")78if [ "$ACTION" == "$ADD" ]; then9 git status --short | cut -c 4- | gum choose --no-limit | xargs git add10else11 git status --short | cut -c 4- | gum choose --no-limit | xargs git restore12fi