1. 30 Aug, 2010 2 commits
  2. 27 Aug, 2010 2 commits
  3. 25 Aug, 2010 1 commit
  4. 10 Aug, 2010 1 commit
    • Brad King's avatar
      pre-commit: Check submodules staged with other changes · 48e72dd1
      Brad King authored
      Since Git does not automatically update submodule checkouts when
      checking out a new version in the work tree, it is common to have
      locally modified submodule references.  Therefore it is easy to stage
      such modifications with other changes by accident, especially with
      commands like "git add -u" or "git commit -a".  The result is almost
      always wrong if the submodule change is not intended.
      
      Prevent such mistakes by requiring an extra step to commit submodule
      link updates with other changes.  When this case is detected, print a
      message describing the situation and provide cut-and-paste instructions
      to proceed.
      48e72dd1
  5. 03 Aug, 2010 1 commit
    • Gaëtan Lehmann's avatar
      Reference bash explicitly in shebang lines · 8653d286
      Gaëtan Lehmann authored and Brad King's avatar Brad King committed
      On Solaris, where /bin/sh is actually sh, not bash, some expressions
      like $() are not supported.  Git's own scripts on this machine are
      configured to use "#!/bin/bash".  Change our shebang line to
      
        #!/usr/bin/env bash
      
      which should work almost everywhere.
      8653d286
  6. 16 Jun, 2010 1 commit
  7. 07 Jun, 2010 3 commits
  8. 20 May, 2010 1 commit
    • Brad King's avatar
      pre-commit: Check file modes · 7827726e
      Brad King authored
      Check new files and files whose mode changes to verify that each file
      mode matches the content of the file.  The mode of a file must be
      executable if and only if the file looks executable (name ends in a
      Windows executable extension or content starts with a shebang line).
      7827726e
  9. 28 Apr, 2010 1 commit
    • Brad King's avatar
      commit-msg: Exclude diff during "git commit -v" · 7cd62382
      Brad King authored
      Stop processing the commit message text at a "diff --git" line.  Such
      lines occur when the user commits with the "-v" option.  We should not
      check the patch content; it will be stripped by Git anyway.
      7cd62382
  10. 27 Apr, 2010 1 commit
    • Brad King's avatar
      pre-commit: Workaround shell syntax limitations · 0df83855
      Brad King authored
      Commit "Reject leading TABs" added use of shell syntax of the form
      
        $(case "..." in
           a) ... ;;
          esac)
      
      Some shell implementations fail to recognize that the ')' in the case
      label is not the end of the '$(' expression.  Work around the problem
      by moving the case block into a separate function outside the '$()'
      expression.
      0df83855
  11. 23 Apr, 2010 1 commit
  12. 22 Apr, 2010 1 commit
  13. 20 Apr, 2010 1 commit
  14. 01 Apr, 2010 1 commit
  15. 31 Mar, 2010 1 commit