Lost in Technopolis

Building a better pre-commit hook for Git

 Uncategorized  4 Responses »
Feb 132009
 

Recently a friend turned me onto an interesting article about a problem I had just recently discovered about Git and its pre-commit hook:

Committing in git with only some changes added to the staging area still results in an “atomic” revision that may never have existed as a working copy and may not work.

Continue reading »

 Posted by johnw at 5:23 pm  Tagged with: commit, hook

Recent Posts

  • Temporary mirror of comonad.com
  • Nightly builds of GHC HEAD for Ubuntu 12.04.2 LTS
  • Nightly builds of GHC HEAD for OS X 10.8
  • Three examples of problems with Lazy I/O
  • An experiment: shorter posts

Recent Comments

  • strager on Nightly builds of GHC HEAD for OS X 10.8
  • Gautham on Linux DHCP and Windows DNS
  • fran on An experiment: shorter posts
  • Noorul Islam K M on An experiment: shorter posts
  • johnw on Git from the bottom up

Tags

algorithm Archiveopteryx blueprint Cabal commit commodity DHCP DNS Example fetchmail fibonacci Gnus graham HackPorts hook Hunchentoot IMAP immutable infinity journal JVM laziness lazy MacPorts merge Monad philosophy PostgreSQL procmail rebase Ruby SBCL Schroedinger SLIME tutorial

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
© 2012 Lost in Technopolis Suffusion theme by Sayontan Sinha