git cherryã§ãã©ã³ãéã®ã³ãããã®diffããè²ãã¤ãã¦
git cherryã§ããã©ã³ãã»ããªã¼éã®ã³ãããã®diffãè¦ããã¨ãã§ããã
git cherry [-v] [<upstream> [<head> [<limit>]]]
ããã©ã«ãã§ã¯ãupsteamã«ç¡ãã³ãããã¯"+"ã§ãéã«headã«ãªãã¦upstreamã«ããã³ãããã¯"-"ã§è¡¨ç¤ºããããããã¨sha1ã®ã¿ãå³ããã£ãããªãã
"git cherry -v"ã§ãã³ããããã°ãã§ãã
ããã§ãå åã ãã©ããã£ã¨diffã£ã½ãè²ä»ããããAutherãæ¥ä»è¡¨ç¤ºãããããããã®ã§ãããªaliasæ¸ãã
# colorized cheery -v cch= "!f() { git cherry -v "$@" | awk '{ if($1 == \"+\"){ color = \"green\" } if($1 == \"-\"){ color = \"red\" } cmd = \"git show --date=short --no-notes --pretty=format:\\047%C\" color $1 \" %h %Cgreen%cd %Cblue%cn%x09%Creset%s\\047 --summary \" $2; cmd | getline t; close(cmd); print t }' ;}; f"
( ꒪⌓꒪) Add git cch as colorized git cherry · 859732d · yuroyoro/dotfiles · GitHub
ãããªè¡¨ç¤ºã«ãªãã
awkコï¾ï½²ã