git diffããæã«ã横ã«é·ãè¡ã®è¡¨ç¤ºãã³ã³ã½ã¼ã«ã®å³ã«ã¤ãã¬ãã¦ãã¾ã£ã¦ãå³ã®ã»ããè¦ããªããªã£ã¦ãã¾ããã ãã©ãã©ãããã°ã³ã³ã½ã¼ã«ã®å³ã§æãè¿ãã¦è¡¨ç¤ºãã¦ãããã®ã誰ãæãã¦ããã¾ããããMacã®Terminalã§ãã
http://twitter.com/shin1ogawa/status/13489861413
ã¨ããã®ããã£ã¦ã
git diff --color | less -R
ã¨ãã§åºæ¥ãã£ã½ãã¨ãã話ã«ãªã£ããã ãã©ããããªã®ãããªãã¦ãè¨å®ã§ã©ãã«ãã§ããã¯ãã ãããã¨ãã話ãhokaccha氏ã«ãã¦ã¿ãããããã«èª¿ã¹ã¦æãã¦ãããããããã¨ããããã¾ãï¼
$HOME/.gitconfig ã«ã
[color] ui = auto [core] pager = less -r
ã¨æ¸ãã¦ããã°ããã ããããã
git diffとかで表示が切れてしまうときの対象方法 - Webtech Walker
ãã ã"-r"ã ã¨ã¿ããå ¥ã£ã¦ããè¡ã¨ãã§è¡¨ç¤ºãããã¦ãã¾ãã£ã½ãããã§"-R"ãªãã·ã§ã³ã«ããã°ããããããªæ°ãããã®ã ãã©ããªããåã®ç°å¢(git version 1.6.6)ã ã¨"less -R"ãå¹ãã¦ããããã¾ã表示ãåãã¦ãã¾ã£ããä½æ ï¼ï¼
ã¨ããããã
[core] pager = LESS=-R less
ã¨ç°å¢å¤æ°ã§ãªãã·ã§ã³æå®ããããã«ãããæ´ã£ã¦è¡¨ç¤ºãããããã«ãªã£ãã®ã§ããã®è¨å®ã«ãã¦ããï¼