1
0
Fork 0

Add aliases to hide or show indexed files and dirs

Uses `--assume-unchanged` and `--no-assume-unchanged` flags.
pull/466/head
Joel Kuzmarski 11 years ago
parent 92c4dc0fb2
commit 7e6e8cac1d

@ -84,6 +84,7 @@ Aliases
- `gdm` lists modified files. - `gdm` lists modified files.
- `gdu` lists untracked files. - `gdu` lists untracked files.
- `gdk` lists killed files. - `gdk` lists killed files.
- `gdh` lists hidden files.
- `gdi` lists ignored files. - `gdi` lists ignored files.
### Fetch ### Fetch
@ -113,6 +114,8 @@ Aliases
- `giR` resets the current index interactively. - `giR` resets the current index interactively.
- `gix` removes files/directories from the index (recursively). - `gix` removes files/directories from the index (recursively).
- `giX` removes files/directories from the index (recursively and forced). - `giX` removes files/directories from the index (recursively and forced).
- `gih` hides files/directories from the index.
- `gis` shows files/directories hidden from the index.
### Log ### Log

@ -3,6 +3,7 @@
# #
# Authors: # Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
# Joel Kuzmarski <leoj3n@gmail.com>
# #
# #
@ -72,6 +73,7 @@ alias gdx='git ls-files --deleted'
alias gdm='git ls-files --modified' alias gdm='git ls-files --modified'
alias gdu='git ls-files --other --exclude-standard' alias gdu='git ls-files --other --exclude-standard'
alias gdk='git ls-files --killed' alias gdk='git ls-files --killed'
alias gdh='git ls-files -v | grep "^h " | cut -d" " -f2-'
alias gdi='git status --porcelain --short --ignored | sed -n "s/^!! //p"' alias gdi='git status --porcelain --short --ignored | sed -n "s/^!! //p"'
# Fetch (f) # Fetch (f)
@ -98,6 +100,8 @@ alias gir='git reset'
alias giR='git reset --patch' alias giR='git reset --patch'
alias gix='git rm -r --cached' alias gix='git rm -r --cached'
alias giX='git rm -rf --cached' alias giX='git rm -rf --cached'
alias gih='git update-index --assume-unchanged'
alias gis='git update-index --no-assume-unchanged'
# Log (l) # Log (l)
alias gl='git log --topo-order --pretty=format:${_git_log_medium_format}' alias gl='git log --topo-order --pretty=format:${_git_log_medium_format}'

Loading…
Cancel
Save