Giter Club home page Giter Club logo

git-notify's Introduction

git-notify

git-notify -- send git commit emails in your post-receive hook

Why Use It?

  • Developers like simple plaintext emails.
  • Can send a single digest email per push, instead of an email for each commit.
  • Do you trust your email provider with your code? If not, diffs can be turned off.

Installation and Usage

cd /var/git/my-bare-repo
git config notify.to          [email protected]
git config notify.from        [email protected]
git config notify.maxdiff     0  # don't put diffs in emails (more secure)
git config notify.maxnotices  0  # send a single digest email per push
ln -s `which git-notify` hooks/post-receive

What the Email Looks Like

From: [email protected]
To: [email protected]
Subject: New commits on git-notify branch master

commit 7c21c6e1b344feae6f31e3ae6c76428b045ac452
Author: Alan Grow <alangrow@... .com>
Date:   Mon May 20 20:00:13 2013 -0600

    better markdown README with installation instruction, requirements, and motivation.

commit 0252e2f7489befc0e4a957593b31b6fb11ab4896
Author: Alan Grow <alangrow@... .com>
Date:   Mon May 20 19:37:22 2013 -0600

    check exit status of git commands that pipe output to us. die and report non-zero exit codes.

Requirements

  • perl (no modules outside of core needed)
  • sendmail (or sendmail-compatible program like qmail-inject)
  • git

License

GPL

History

Originally developed by Alexandre Julliard for the Wine project.

git-notify's People

Contributors

acg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

git-notify's Issues

sometimes ancestry search goes too far back when notifying a new branch

When a new branch is pushed, git-notify attempts to find the commit at which the new branch diverged from an existing commit, and only includes the new commits in an email.

Sometimes though this search for a common ancestor goes too far back, and the resulting notification email has tons of old commits that we've already been notified of.

error when notifying the very first commit

With a new repo, the very first git push spewed this error:

remote: Use of uninitialized value $old_sha1 in concatenation (.) or string at /usr/bin/git-notify line 162.
remote: fatal: bad revision '^'
remote: non-zero exit for git-rev-list: 128 at /usr/bin/git-notify line 169.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.