Permalink
Switch branches/tags
Nothing to show
Commits on May 11, 2011
  1. Edited README.md via GitHub

    committed May 11, 2011
  2. Edited README.md via GitHub

    committed May 11, 2011
  3. Edited README.md via GitHub

    committed May 11, 2011
  4. Merge branch 'release/2.0.0'

    committed May 11, 2011
  5. stick in a change history section

    committed May 11, 2011
  6. this causes the test case to fail

    committed May 11, 2011
  7. adding docs

    committed May 11, 2011
  8. whitespace

    committed May 11, 2011
  9. don't fail with stupidly named files

    like "foo (1).png" did, right now for me
    committed May 11, 2011
  10. also bail if the gain is less than 5%

    the optimization could change the image sufficiently to affect quality -
    don't risk optimizing the image for little gain
    committed May 11, 2011
  11. don't bother changing the file if the saving is less than ~5k

    if it's a small saving, it's more hassle than it's worth to notify the
    developer that the image is slightly better off optimized. Go only for
    the big gains. the 13mb jpeg the boss said to use as a background and
    the designer didn't notice
    committed May 11, 2011
  12. prevent errors raised for files in the root of the project

    prevent errors when deleting files (attempting to static copy nothing)
    
    also only create a static copy once on first request, therafter refer to
    the same copy of the files to be committed in subsequent git hooks. This
    prevents the case whereby if you've got 20 individual hooks all
    requiring static analysis - each of them deleting and copying the files
    to the tmp dir in sequence.
    committed May 11, 2011
  13. adding a random php file

    adding #
    committed May 11, 2011
  14. don't use __DIR__

    the actual file is a symlink and therefore __DIR__ is the folder of the
    actual file - in this repository. If you were to want to add something
    project specific to utils, you would be unable to refer to it.
    
    The only remaining exceptions are in test cases
    committed May 11, 2011
Commits on May 7, 2011
  1. remove some unnecessary tests

    committed May 7, 2011
  2. typo

    committed May 7, 2011
  3. update 1.3 test runner

    committed May 7, 2011
  4. left over escape \

    committed May 7, 2011
  5. add some core tests

    committed May 7, 2011
  6. adding stub test

    committed May 7, 2011
  7. refer to the correct array key

    committed May 7, 2011
  8. make testable

    committed May 7, 2011
  9. make testable

    committed May 7, 2011
  10. if called like so:

    php .git/hooks/php/somehook.php thisdir thatdir
    
    now returns only the files in thisdir and thatdir
    committed May 7, 2011