diff options
author | Guangxiong Lin <[email protected]> | 2022-01-23 12:29:00 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-01-23 12:29:00 +0800 |
commit | cef30030bef011b506a568b5a1bd46b99ead72c0 (patch) | |
tree | 2e0ef882b36c947a31afe99ca68e15274a8de642 /.aliases | |
parent | 8b4f1525d95066464316156ec5a3c1b2c1c00e0c (diff) | |
download | dotfiles-cef30030bef011b506a568b5a1bd46b99ead72c0.tar.gz dotfiles-cef30030bef011b506a568b5a1bd46b99ead72c0.tar.bz2 dotfiles-cef30030bef011b506a568b5a1bd46b99ead72c0.zip |
Add function and alias to help code review
Add following aliases:
- gmf: Show the changed files from base branch to current branch
- gmfn: Similar to gmfn, but only contains the name of changed files
Add a function:
- greview: Open all changed files in vim. Map <leader>gd to show the
diff between base branch and current branch.
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -7,6 +7,9 @@ alias nb='cd ~/journals; vim index.md; cd -' alias todo='cd ~/journals; vim gtd.md; cd -' alias vimg='vim +Git +only' +alias gmf='git diff --merge-base' +alias gmfn='git diff --merge-base --name-only' + if [ -f /usr/bin/pacman ]; then alias S='pacman -S' alias Si='pacman -Si' |