1. 02 May, 2018 1 commit
  2. 24 Sep, 2013 1 commit
  3. 15 Jul, 2013 3 commits
  4. 26 Oct, 2011 1 commit
  5. 20 Mar, 2010 1 commit
  6. 07 Nov, 2009 1 commit
  7. 22 Sep, 2009 1 commit
  8. 20 May, 2009 1 commit
  9. 16 May, 2009 1 commit
  10. 27 Jun, 2008 1 commit
    • Junio C Hamano's avatar
      Update sample pre-commit hook to use "diff --check" · 03e2b630
      Junio C Hamano authored
      Now "diff --check" can detect not just whitespace errors but also notices
      leftover conflict marker lines, we can use it in the sample pre-commit
      hook script.
      These days the object layer knows about the empty tree object without
      actually having one in the repository, so we can run the test even for the
      initial commit.
      Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
  11. 25 Jun, 2008 1 commit
    • Junio C Hamano's avatar
      Ship sample hooks with .sample suffix · f98f8cba
      Junio C Hamano authored
      We used to mark hooks we ship as samples by making them unexecutable, but
      some filesystems cannot tell what is executable and what is not.
      This makes it much more explicit.  The hooks are suffixed with .sample
      (but now are made executable), so enabling it is still one step operation
      (instead of "chmod +x $hook", you would do "mv $hook.sample $hook") but
      now they won't get accidentally enabled on systems without executable bit.
      Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
  12. 14 Jan, 2008 1 commit
  13. 23 Nov, 2007 1 commit
  14. 27 Oct, 2007 1 commit
  15. 07 Jun, 2007 1 commit
    • Junio C Hamano's avatar
      War on whitespace · a6080a0a
      Junio C Hamano authored
      This uses "git-apply --whitespace=strip" to fix whitespace errors that have
      crept in to our source files over time.  There are a few files that need
      to have trailing whitespaces (most notably, test vectors).  The results
      still passes the test, and build result in Documentation/ area is unchanged.
      Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
  16. 19 Apr, 2006 1 commit
    • Junio C Hamano's avatar
      pre-commit hook: complain about conflict markers. · 61c2bcbd
      Junio C Hamano authored
      Several <<< or === or >>> characters at the beginning of a line
      is very likely to be leftover conflict markers from a failed
      automerge the user resolved incorrectly, so detect them.
      As usual, this can be defeated with "git commit --no-verify" if
      you really do want to have those files, just like changes that
      introduce trailing whitespaces.
      Signed-off-by: 's avatarJunio C Hamano <junkio@cox.net>
  17. 29 Jan, 2006 1 commit
    • Junio C Hamano's avatar
      [PATCH] pre-commit sample hook: do not barf on the initial import · d37fd032
      Junio C Hamano authored
      The example hook barfs on the initial import.  Ideally it should
      produce a diff from an empty tree, but for now let's stop at
      squelching the bogus error message.  Often an initial import
      involves tons of badly formatted files from foreign SCM, so not
      complaining about them like this patch does might actually be a
      better idea than enforcing the "Perfect Patch" format on them.
      Signed-off-by: 's avatarJunio C Hamano <junkio@cox.net>
  18. 08 Sep, 2005 1 commit
    • Junio C Hamano's avatar
      Big tool rename. · 215a7ad1
      Junio C Hamano authored
      As promised, this is the "big tool rename" patch.  The primary differences
      since 0.99.6 are:
        (1) git-*-script are no more.  The commands installed do not
            have any such suffix so users do not have to remember if
            something is implemented as a shell script or not.
        (2) Many command names with 'cache' in them are renamed with
            'index' if that is what they mean.
      There are backward compatibility symblic links so that you and
      Porcelains can keep using the old names, but the backward
      compatibility support  is expected to be removed in the near
      Signed-off-by: 's avatarJunio C Hamano <junkio@cox.net>
  19. 20 Aug, 2005 2 commits
  20. 19 Aug, 2005 1 commit
    • Junio C Hamano's avatar
      Add commit hook and make the verification customizable. · 89e2c5f1
      Junio C Hamano authored
      There are three hooks:
          - 'pre-commit' is given an opportunity to inspect what is
            being committed, before we invoke the EDITOR for the
            commit message;
          - 'commit-msg' is invoked on the commit log message after
            the user prepares it;
          - 'post-commit' is run after a successful commit is made.
      The first two can interfere to stop the commit.  The last one is
      for after-the-fact notification.
      The earlier built-in commit checker is now moved to pre-commit.
      Signed-off-by: 's avatarJunio C Hamano <junkio@cox.net>