1. 22 3月, 2011 2 次提交
    • J
      update $GIT_INDEX_FILE when there are racily clean entries · 483fbe2b
      Junio C Hamano 提交于
      Traditional "opportunistic index update" done by read-only "diff" and
      "status" was about updating cached lstat(2) information in the index for
      the next round.  We missed another obvious optimization opportunity: when
      there are racily clean entries that will cease to be racily clean by
      updating $GIT_INDEX_FILE.  Detect that case and write $GIT_INDEX_FILE out
      to give it a newer timestamp.
      
      Noticed by Lasse Makholm by stracing "git status" in a fresh checkout and
      counting the number of open(2) calls.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      483fbe2b
    • J
      diff/status: refactor opportunistic index update · ccdc4ec3
      Junio C Hamano 提交于
      When we had to refresh the index internally before running diff or status,
      we opportunistically updated the $GIT_INDEX_FILE so that later invocation
      of git can use the lstat(2) we already did in this invocation.
      
      Make them share a helper function to do so.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ccdc4ec3
  2. 19 9月, 2010 2 次提交
  3. 18 9月, 2010 2 次提交
  4. 16 9月, 2010 11 次提交
  5. 15 9月, 2010 1 次提交
  6. 14 9月, 2010 3 次提交
  7. 13 9月, 2010 4 次提交
    • J
      Merge branch 'maint' · 5879b6bb
      Junio C Hamano 提交于
      * maint:
        t3101: modernise style
        compat/nedmalloc: don't force NDEBUG on the rest of git
      
      Conflicts:
      	Makefile
      5879b6bb
    • J
      ls-tree $di $dir: do not mistakenly recurse into directories · b294ed63
      Junio C Hamano 提交于
      When applying two pathspecs, one of which is named as a prefix to the
      other, we mistakenly recursed into the shorter one.
      
      Noticed and fixed by David Reis.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b294ed63
    • J
      t3101: modernise style · e22148f4
      Junio C Hamano 提交于
      Also add a few " &&" cascade that were missing.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e22148f4
    • R
      vcs-svn: Fix some printf format compiler warnings · 5418d96d
      Ramsay Jones 提交于
      In particular, on systems that define uint32_t as an unsigned long,
      gcc complains as follows:
      
            CC vcs-svn/fast_export.o
        vcs-svn/fast_export.c: In function `fast_export_modify':
        vcs-svn/fast_export.c:28: warning: unsigned int format, uint32_t arg (arg 2)
        vcs-svn/fast_export.c:28: warning: int format, uint32_t arg (arg 3)
        vcs-svn/fast_export.c: In function `fast_export_commit':
        vcs-svn/fast_export.c:42: warning: int format, uint32_t arg (arg 5)
        vcs-svn/fast_export.c:62: warning: int format, uint32_t arg (arg 2)
        vcs-svn/fast_export.c: In function `fast_export_blob':
        vcs-svn/fast_export.c:72: warning: int format, uint32_t arg (arg 2)
        vcs-svn/fast_export.c:72: warning: int format, uint32_t arg (arg 3)
            CC vcs-svn/svndump.o
        vcs-svn/svndump.c: In function `svndump_read':
        vcs-svn/svndump.c:260: warning: int format, uint32_t arg (arg 3)
      
      In order to suppress the warnings we use the C99 format specifier
      macros PRIo32 and PRIu32 from <inttypes.h>.
      Signed-off-by: NRamsay Jones <ramsay@ramsay1.demon.co.uk>
      Acked-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5418d96d
  8. 12 9月, 2010 1 次提交
  9. 11 9月, 2010 6 次提交
  10. 10 9月, 2010 8 次提交