dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit c372480ab26bf1bf9b302efe7e31a6c7eb56d10e
parent d2c6c1a1b7a50f08d2df9c65da74d8dc9151e064
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Fri,  1 Nov 2019 15:13:52 -0400

git-review: add edit option

Former-commit-id: 90a8baf6bd1b2e78ab053c1b1c153c26fbb83980
Diffstat:
Mscripts/git-review | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/scripts/git-review b/scripts/git-review @@ -12,13 +12,18 @@ case "$1" in git diff --stat $(git merge-base HEAD "${REVIEW_BASE:-master}") | sort -t \| -k 2nr | less -R ;; - open) + diff) # Open all files changed since REVIEW_BASE in Vim tabs # Then, run fugitive's :Gdiff in each tab, and finally # tell vim-gitgutter to show +/- for changes since REVIEW_BASE vim -p $(git review files) +"tabdo Gdiff ${REVIEW_BASE:-master}" +"let g:gitgutter_diff_base = '${REVIEW_BASE:-master}'" ;; + edit) + # Open all files changed since REVIEW_BASE in Vim + vim $(git review files) + ;; + one) # Same as the above, except specify names of files as arguments, # instead of opening all files: @@ -30,6 +35,7 @@ case "$1" in echo "Commands:" echo -e " - files" echo -e " - stat" - echo -e " - open" + echo -e " - diff" + echo -e " - edit" echo -e " - one" esac