This project is mirrored from https://github.com/git/git. Updated .
  1. 05 Oct, 2011 1 commit
  2. 22 Jan, 2010 1 commit
    • Linus Torvalds's avatar
      slim down "git show-index" · a5031214
      Linus Torvalds authored
      As the documentation says, this is primarily for debugging, and
      in the longer term we should rename it to test-show-index or something.
      
      In the meantime, just avoid xmalloc (which slurps in the rest of git), and
      separating out the trivial hex functions into "hex.o".
      
      This results in
      
        [torvalds@nehalem git]$ size git-show-index
             text    data     bss     dec     hex filename
           222818    2276  112688  337782   52776 git-show-index (before)
             5696     624    1264    7584    1da0 git-show-index (after)
      
      which is a whole lot better.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      a5031214