Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

(」・ω・)」うー!(/・ω・)/にゃー! Add alias to editing files that modified at spe…

…cified commit.
  • Loading branch information...
commit 6a021bf7845660c3f111fdcc351ab8f17bdeae66 1 parent 9c3ea9b
@yuroyoro authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  .gitconfig
View
2  .gitconfig
@@ -105,6 +105,8 @@
# mergeの際にconflictが起きたファイルをadd
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
delete-unmerged = "!f() { git ls-files --deleted | cut -f2 | sort -u ; }; git rm `f`"
+ # 指定したコミットで変更されたファイルを編集する
+ modified = "!f() { git diff $1..$1\\^ --name-only | xargs sh -c 'vim "$@" < /dev/tty' - ;}; f"
# grep関連
gr = grep
gn = grep -n
Please sign in to comment.
Something went wrong with that request. Please try again.