{"url":"https://masawada.hatenablog.jp/entry/2016/06/13/123825","author_name":"masawada","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/masawada/","version":"1.0","title":"git diff\u3067\u5dee\u5206\u306e\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u77ac\u3067\u958b\u304f\u3084\u3064","categories":[],"height":"190","blog_url":"https://masawada.hatenablog.jp/","provider_url":"https://hatena.blog","published":"2016-06-13 12:38:25","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasawada.hatenablog.jp%2Fentry%2F2016%2F06%2F13%2F123825\" title=\"git diff\u3067\u5dee\u5206\u306e\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u77ac\u3067\u958b\u304f\u3084\u3064 - \u3042\u3093\u30d1\u30f3\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","type":"rich","description":"\u7de8\u96c6\u3057\u3066\u307e\u3060git add\u3057\u3066\u306a\u3044\u3084\u3064\u3092\u3082\u3046\u4e00\u5ea6\u958b\u304d\u305f\u3044\u3068\u304d\uff0c\u3044\u3061\u3044\u3061\u63a2\u308b\u306e\u9762\u5012\u306a\u306e\u3067\u4f5c\u3063\u305f\uff0e\u591a\u5206\u3053\u306e\u4e16\u306b\u65e2\u306b\u3054\u307e\u3093\u3068\u3042\u308b\u3068\u601d\u3046\uff0e git\u306e\u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u4f5c\u308b\u306a\u3089\u3053\u3093\u306a\u611f\u3058 FILE_PATH=$(git diff --name-only | peco) if [ ${#FILE_PATH} -ne 0 ]; then $EDITOR $(git rev-parse --show-toplevel)/$FILE_PATH fi zsh\u306e\u95a2\u6570\u3068\u3057\u3066\u4f5c\u308b\u306a\u3089\u3053\u3093\u306a\u611f\u3058 function peco-git-editdiff { local dir=$(git diff --name-only |\u2026","blog_title":"\u3042\u3093\u30d1\u30f3"}