Skip to content

Commit

Permalink
feat(status): git status with abbreviated output
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone committed Oct 27, 2017
1 parent 111bc9b commit 4b9e683
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
...
```

<hr>

#### `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
```
1 change: 1 addition & 0 deletions commitizen.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const scopes = [
'cleanup',
'cb',
'log',
'status',
'branch-name',
'develop-branch'
].map(name => ({ name }));
Expand Down
4 changes: 4 additions & 0 deletions src/jlegrone.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 4b9e683

Please sign in to comment.