Skip to content

Commit

Permalink
Feat (git): add an alias displaying the commits yet to be applied to …
Browse files Browse the repository at this point in the history
…upstream (sorin-ionescu#1565)
  • Loading branch information
akarzim authored and josh-h committed Dec 17, 2018
1 parent 8dce22a commit 7a88f35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ zstyle ':prezto:module:git:alias' skip 'yes'
- `gcR` removes the *HEAD* commit.
- `gcs` displays various types of objects.
- `gcl` lists lost commits.
- `gcy` displays commits yet to be applied to upstream in the short format.
- `gcY` displays commits yet to be applied to upstream.

### Conflict

Expand Down
2 changes: 2 additions & 0 deletions modules/git/alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ if ! zstyle -t ':prezto:module:git:alias' skip 'yes'; then
alias gcR='git reset "HEAD^"'
alias gcs='git show'
alias gcl='git-commit-lost'
alias gcy='git cherry -v --abbrev'
alias gcY='git cherry -v'

# Conflict (C)
alias gCl='git --no-pager diff --name-only --diff-filter=U'
Expand Down

0 comments on commit 7a88f35

Please sign in to comment.