1. 30 5月, 2012 3 次提交
    • J
      Merge branch 'mh/fetch-pack-constness' · 4dbfaee0
      Junio C Hamano 提交于
      Tighten constness of some local variables in a callchain.
      
      By Michael Haggerty
      * mh/fetch-pack-constness:
        cmd_fetch_pack(): respect constness of argv parameter
        cmd_fetch_pack(): combine the loop termination conditions
        cmd_fetch_pack(): handle non-option arguments outside of the loop
        cmd_fetch_pack(): declare dest to be const
      4dbfaee0
    • J
      Merge branch 'mh/ref-api-lazy-loose' · 38f2b874
      Junio C Hamano 提交于
      The code to lazily read loose refs unnecessarily read the refs in a
      subhierarchy by mistake when we free the data for the subhierarchy.
      
      By Michael Haggerty
      * mh/ref-api-lazy-loose:
        free_ref_entry(): do not trigger reading of loose refs
      38f2b874
    • J
      Merge branch 'ng/pack-objects-cleanup' · 32bd3a51
      Junio C Hamano 提交于
      By Nguyễn Thái Ngọc Duy
      * ng/pack-objects-cleanup:
        pack-objects: refactor write_object() into helper functions
        pack-objects, streaming: turn "xx >= big_file_threshold" to ".. > .."
      32bd3a51
  2. 26 5月, 2012 18 次提交
  3. 25 5月, 2012 6 次提交
    • J
      Sync with maint · 5bc2dc29
      Junio C Hamano 提交于
      By Jeff King (1) and Junio C Hamano (1)
      * maint:
        Update draft release notes to 1.7.10.3
        osxkeychain: pull make config from top-level directory
      5bc2dc29
    • J
      Update draft release notes to 1.7.10.3 · c4649188
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c4649188
    • J
      Merge branch 'jk/maint-status-porcelain-z-b' into maint · a8bd582d
      Junio C Hamano 提交于
      "git status --porcelain" ignored "--branch" option by mistake.  The output
      for "git status --branch -z" was also incorrect and did not terminate the
      record for the current branch name with NUL as asked.
      
      By Jeff King
      * jk/maint-status-porcelain-z-b:
        status: respect "-b" for porcelain format
        status: fix null termination with "-b"
        status: refactor null_termination option
        commit: refactor option parsing
      a8bd582d
    • M
      Avoid sorting if references are added to ref_cache in order · 654ad400
      Michael Haggerty 提交于
      The old code allowed many references to be efficiently added to a
      single directory, because it just appended the references to the
      containing directory unsorted without doing any searching (and
      therefore without requiring any intermediate sorting).  But the old
      code was inefficient when a large number of subdirectories were added
      to a directory, because the directory always had to be searched to see
      if the new subdirectory already existed, and this search required the
      directory to be sorted first.  The same was repeated for every new
      subdirectory, so the time scaled like O(N^2), where N is the number of
      subdirectories within a single directory.
      
      In practice, references are often added to the ref_cache in
      lexicographic order, for example when reading the packed-refs file.
      So build some intelligence into add_entry_to_dir() to optimize for the
      case of references and/or subdirectories being added in lexicographic
      order: if the existing entries were already sorted, and the new entry
      comes after the last existing entry, then adjust ref_dir::sorted to
      reflect the fact that the ref_dir is still sorted.
      
      Thanks to Peff for pointing out the performance regression that
      inspired this change.
      Signed-off-by: NMichael Haggerty <mhagger@alum.mit.edu>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      654ad400
    • A
      checkout: no progress messages if !isatty(2). · e9fc64c6
      Avery Pennarun 提交于
      If stderr isn't a tty, we shouldn't be printing incremental progress
      messages.  In particular, this affects 'git checkout -f . >&logfile'
      unless you provided -q.  And git-new-workdir has no way to provide -q.
      
      It would probably be better to have progress.c check isatty(2) all the time,
      but that wouldn't allow things like 'git push --progress' to force progress
      reporting to on, so I won't try to solve the general case right now.
      
      Actual fix suggested by Jeff King.
      Signed-off-by: NAvery Pennarun <apenwarr@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e9fc64c6
    • J
      osxkeychain: pull make config from top-level directory · 17a9ac7d
      Jeff King 提交于
      The default compiler and cflags were mostly "works for me"
      when I built the original version. We need to be much less
      careful here than usual, because we know we are building
      only on OS X.  But it's only polite to at least respect the
      CFLAGS and CC definitions that the user may have provided
      earlier.
      
      While we're at it, let's update our definitions and rules to
      be more like the top-level Makefile; default our CFLAGS to
      include -O2, and make sure we use CFLAGS and LDFLAGS when
      linking.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      17a9ac7d
  4. 24 5月, 2012 8 次提交
  5. 23 5月, 2012 5 次提交