From 4b9e683436484b756712c0341dc6220ddcd23f78 Mon Sep 17 00:00:00 2001 From: Jacob LeGrone Date: Fri, 27 Oct 2017 12:46:03 -0400 Subject: [PATCH] feat(status): git status with abbreviated output --- README.md | 15 +++++++++++++++ commitizen.config.js | 1 + src/jlegrone.gitconfig | 4 ++++ 3 files changed, 20 insertions(+) diff --git a/README.md b/README.md index 0dfa855..09671e8 100644 --- a/README.md +++ b/README.md @@ -200,4 +200,19 @@ $ git l e5695bc 2017-08-09 fix(install): update to working validate-git-version [Jacob LeGrone] 3fab789 2017-08-09 test(travis): install production dependencies only [Jacob LeGrone] ... +``` + +
+ +#### `git s` + +Show an abridged `git status` output which only includes files changed. + +> Accepts all options that can be passed to [git-status](https://git-scm.com/docs/git-status). + +```bash +$ git s +M README.md + M commitizen.config.js + M src/jlegrone.gitconfig ``` \ No newline at end of file diff --git a/commitizen.config.js b/commitizen.config.js index 189c84b..c730789 100644 --- a/commitizen.config.js +++ b/commitizen.config.js @@ -60,6 +60,7 @@ const scopes = [ 'cleanup', 'cb', 'log', + 'status', 'branch-name', 'develop-branch' ].map(name => ({ name })); diff --git a/src/jlegrone.gitconfig b/src/jlegrone.gitconfig index e101818..2044563 100644 --- a/src/jlegrone.gitconfig +++ b/src/jlegrone.gitconfig @@ -77,6 +77,10 @@ # Usage: git l l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short + # Run git status with the short-format flag + # Usage: git s + s = status --short + # Get the current branch name (used in other aliases) branch-name = "!git rev-parse --abbrev-ref HEAD"