c81e42f050b9b7152d9ebfa4a3d5a0442159b8d1
- Author
- onemouth <and.liting@gmail.com>
- Committer
- onemouth <and.liting@gmail.com>
- Date
Message
Update git.plugin.zsh
add command to ignore changes to file temporarily
Diff
1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2index c7e98654aa1e4be1b3ad8b56438e57f3cb03dcfc..d0b51434d3f8c46471b79bf307be0cb4173982e4 100644
3--- a/plugins/git/git.plugin.zsh
4+++ b/plugins/git/git.plugin.zsh
5@@ -149,3 +149,12 @@ function work_in_progress() {
6 # these alias commit and uncomit wip branches
7 alias gwip='git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m "wip"'
8 alias gunwip='git log -n 1 | grep -q -c wip && git reset HEAD~1'
9+
10+# these alias ignore changes to file
11+alias gignore='git update-index --assume-unchanged'
12+alias gunignore='git update-index --no-assume-unchanged'
13+# list temporarily ignored files
14+alias gignored='git ls-files -v | grep "^[[:lower:]]"'
15+
16+
17+