From 5f4f708de46062ffa9219eaa6d6be883532ed1b4 Mon Sep 17 00:00:00 2001 From: Andrea Ceccarelli Date: Sat, 3 Feb 2018 09:42:02 +0100 Subject: [PATCH] feature: add git add -p to git module --- modules/git/README.md | 4 ++++ modules/git/alias.zsh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/modules/git/README.md b/modules/git/README.md index bd67f712..26fa1d8b 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -259,6 +259,10 @@ zstyle ':prezto:module:git:alias' skip 'yes' - `gRs` displays information about a given remote. - `gRb` opens a remote on [GitHub][3] in the default browser. +### Stage + + - `gap` stage changes interactively + ### Stash - `gs` stashes the changes of the dirty working directory. diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 4a5789fe..ed3c5dea 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -238,6 +238,10 @@ if ! zstyle -t ':prezto:module:git:alias' skip 'yes'; then alias gsS='git stash save --patch --no-keep-index' alias gsw='git stash save --include-untracked --keep-index' + # Stage (a) + alias gap='git add -p' + + # Submodule (S) alias gS='git submodule' alias gSa='git submodule add'