Skip to content

Commit

Permalink
Alter edit all modified files function
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrr committed Sep 8, 2021
1 parent 46a5066 commit 9c5a431
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-aliases
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ git-todo() {
git grep -n -e TODO -e FIXME -e XXX
}

# Usage: git-edit-all-diffs
# Usage: git-edit-modified
git-edit-all-diffs() {
git-in-repo && \
"${VISUAL}" "$(git diff --name-only --diff-filter=U | uniq)"
"${VISUAL}" "$(git ls-files -o -m --exclude-standard)"
}
alias va='git-edit-all-diffs'
alias va='git-edit-modified'

# Usage: git-list-diff $HASH
# List all files contained in a commit.
Expand Down

0 comments on commit 9c5a431

Please sign in to comment.