SkillAgentSearch skills...

Gitnotify

Simple shell script to send colorized html git diffs

Install / Use

/learn @slayer/Gitnotify
About this skill

Quality Score

0/100

Supported Platforms

Zed

README

SUMMARY

gitnotify is a simple shell script designed to send nice HTML diff from hooks. It was based on HTML and CSS code from svnnotify and shell logic from diff2html shell script

QUICK START

Running from sources (latest and greatest features)

  1. Clone the git repo

     git clone git://github.com/slayer/gitnotify.git
    
  2. Make symlink to your script directory (eg ~/bin)

     ln -s path/to/gitnotify/gitnotify ~/bin
    
  3. Edit .git/hooks/post-commit script

     echo '[ -x ~/bin/gitnotify ] && ~/bin/gitnotify -m your@email.address -s "[DIFF] My repo notify"' >>.git/hooks/post-commit
    
  4. Add execute bit to scripts

     chmod a+x ~/bin/gitnotify
     chmod a+x .git/hooks/post-commit
    
  5. Enjoy

NOTES

  • For Debian users: please use bsd-mailx instead of heirloom-mailx

OPTIONS

OTHER

Quick install for etckeeper

    bash < <(curl -s https://github.com/slayer/gitnotify/raw/master/etckeeper.sh)
View on GitHub
GitHub Stars11
CategoryDevelopment
Updated4y ago
Forks4

Languages

Shell

Security Score

60/100

Audited on Mar 19, 2022

No findings