ç¹å®ã®æååãããè¡ãããå¥ã®ç¹å®ã®æååãããè¡ã¾ã§ãæ½åºãããã¨ãããã¨ãããããã¾ãã ããgrepçã使ãã¨è¦å´ãã話ãªãã§ãããflip-flopæ¼ç®åã使ã£ãPerlã®one-linerã§å¯è½ã§ãã ä¾ãã°æ¨æ¥ã®è¨äºã§ã¯git help commitã®ä¸ãã--no-edit/ãªãã·ã§ã³ã®èª¬æãæ½åºãã¾ããã ããã¯--no-editã¨ããæååãåºã¦ããã¨ãããã空è¡ã¾ã§ãæ½åºããã°è¯ããããã¯ä»¥ä¸ã®ããã«ããã°å¯è½ã§ãã $ git help commit | perl -nle 'print if /--no-edit/ ... /^\s*$/' 解説èªä½ã«ç©ºè¡ãæ··ããã±ã¼ã¹ã§ã¯ä»¥ä¸ã®ããã«ããã°è¯ãã§ãããã ãã®ä¾ã§ã¯ã--cleanupã¨ããæååãåºç¾ãã¦ããã次ã®ãªãã·ã§ã³(-æååå½¢å¼)ãåºãã¾ã§ãæ½åºãã¦ãã¾ãã $ git help commit | pe
{{#tags}}- {{label}}
{{/tags}}