diffã®åºåã¯æ¨æºã§ã«ã©ã¼è¡¨ç¤ºãããªãã ã«ã©ã¼è¡¨ç¤ºããããã®ã³ãã³ãã¨ãã¦ã¯colordiffãããããå¤ãã®å ´åæ¨æºã§ã¯å ¥ã£ã¦ããªãããã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã ã¨ããããdiffã®ã«ã©ã¼è¡¨ç¤ºã¯gitã使ã£ã¦ãã§ãããã¨ãç¥ã£ãã git diffã¯æ¯è¼ãããã¡ã¤ã«ãgitã®ç®¡çä¸ã«ãªãã¦ã使ããã ã¾ãã-uãªãã·ã§ã³ãã¤ããªãã¦ãunified diffå½¢å¼ã§è¡¨ç¤ºãããã æ¨ä»ã®éçºç°å¢ã§ã¯gitãã¤ã³ã¹ãã¼ã«ããã¦ããå ´åãå¤ãããã®ãããªç°å¢ã§ã¯ä¾¿å©ã§ããã ã¨ã¤ãªã¢ã¹é¢æ°ãä½ã gitãã¤ã³ã¹ãã¼ã«ããã¦ããã¨ãã¯git diffã使ãã¨ã¤ãªã¢ã¹é¢æ°ï¼bashç¨ï¼ãä½ã£ã¦ã¿ãã diffu() { local DIFF if hash git &>/dev/null; then DIFF="git diff --no-index" else DIFF="diff -u"
{{#tags}}- {{label}}
{{/tags}}