Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
fb4213c3
Unverified
Commit
fb4213c3
authored
May 26, 2023
by
Tom D
Committed by
GitHub
May 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(git): improve `gunwip` alias (#11714)
parent
5901f30b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
plugins/git/README.md
+1
-1
git.plugin.zsh
plugins/git/git.plugin.zsh
+1
-1
No files found.
plugins/git/README.md
View file @
fb4213c3
...
...
@@ -186,7 +186,7 @@ plugins=(... git)
| gtv | git tag
\|
sort -V |
| gtl | gtl(){ git tag --sort=-v:refname -n --list ${1}
\*
}; noglob gtl |
| gunignore | git update-index --no-assume-unchanged |
| gunwip | git
log --max-count=1
\|
grep -q -c "
\-\-
wip
\-\-
" && git reset HEAD~1
|
| gunwip | git
rev-list --max-count=1 --format="%s" HEAD
\|
grep -q "
\-\-
wip
\-\-
" && git reset HEAD~1
|
| gup | git pull --rebase |
| gupv | git pull --rebase --verbose |
| gupa | git pull --rebase --autostash |
...
...
plugins/git/git.plugin.zsh
View file @
fb4213c3
...
...
@@ -312,7 +312,7 @@ alias gtv='git tag | sort -V'
alias
gtl
=
'gtl(){ git tag --sort=-v:refname -n --list "${1}*" }; noglob gtl'
alias
gunignore
=
'git update-index --no-assume-unchanged'
alias
gunwip
=
'git
log --max-count=1 | grep -q -c
"\--wip--" && git reset HEAD~1'
alias
gunwip
=
'git
rev-list --max-count=1 --format="%s" HEAD | grep -q
"\--wip--" && git reset HEAD~1'
alias
gup
=
'git pull --rebase'
alias
gupv
=
'git pull --rebase --verbose'
alias
gupa
=
'git pull --rebase --autostash'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment