From 2fa3e8475d3f0a61148adae5acd183e53973425a Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Tue, 2 Dec 2025 10:52:38 +0100 Subject: [PATCH] fix(git): gitf case for adding and listing staged changes (#71) Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/71 --- .bash_aliases | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 290cf9c..87876f4 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -127,10 +127,10 @@ mkd () { # Short-hands for various git functions gitf () { case "$1" in - # Stage all changes and fall through to WIP commit - "aw") - git add . - gitf w + # Stage and list changes to be committed + "a") + git add $2 + gitf ;; # Checkout [and create] a git branch (defaults to "master") @@ -204,7 +204,7 @@ sshl () { # | Tmux | # +------+ -# Tmux split commands, "q" for fast access, "w" for horizontal (right of q), "a" for vertical (below q) +# Tmux split commands, "q" for fast access, "w" for horizontal (right of q), "a" for vertical (below q) alias qw="tmux split-window -h" alias qa="tmux split-window -v"