1. 16 10月, 2007 21 次提交
  2. 04 10月, 2007 3 次提交
  3. 03 10月, 2007 16 次提交
    • J
      Merge branch 'mv/unknown' · cc61ae82
      Junio C Hamano 提交于
      * mv/unknown:
        Don't use "<unknown>" for placeholders and suppress printing of empty user formats.
      cc61ae82
    • J
      Merge branch 'ph/strbuf' · 66d4035e
      Junio C Hamano 提交于
      * ph/strbuf: (44 commits)
        Make read_patch_file work on a strbuf.
        strbuf_read_file enhancement, and use it.
        strbuf change: be sure ->buf is never ever NULL.
        double free in builtin-update-index.c
        Clean up stripspace a bit, use strbuf even more.
        Add strbuf_read_file().
        rerere: Fix use of an empty strbuf.buf
        Small cache_tree_write refactor.
        Make builtin-rerere use of strbuf nicer and more efficient.
        Add strbuf_cmp.
        strbuf_setlen(): do not barf on setting length of an empty buffer to 0
        sq_quote_argv and add_to_string rework with strbuf's.
        Full rework of quote_c_style and write_name_quoted.
        Rework unquote_c_style to work on a strbuf.
        strbuf API additions and enhancements.
        nfv?asprintf are broken without va_copy, workaround them.
        Fix the expansion pattern of the pseudo-static path buffer.
        builtin-for-each-ref.c::copy_name() - do not overstep the buffer.
        builtin-apply.c: fix a tiny leak introduced during xmemdupz() conversion.
        Use xmemdupz() in many places.
        ...
      66d4035e
    • J
      Merge branch 'lh/merge' · e66273a6
      Junio C Hamano 提交于
      * lh/merge:
        git-merge: add --ff and --no-ff options
        git-merge: add support for --commit and --no-squash
        git-merge: add support for branch.<name>.mergeoptions
        git-merge: refactor option parsing
        git-merge: fix faulty SQUASH_MSG
        Add test-script for git-merge porcelain
      e66273a6
    • J
      Merge branch 'js/rebase-i' · 9b0185ca
      Junio C Hamano 提交于
      * js/rebase-i:
        rebase -i: work on a detached HEAD
      9b0185ca
    • J
      Merge branch 'jc/autogc' · 0341091a
      Junio C Hamano 提交于
      * jc/autogc:
        git-gc --auto: run "repack -A -d -l" as necessary.
        git-gc --auto: restructure the way "repack" command line is built.
        git-gc --auto: protect ourselves from accumulated cruft
        git-gc --auto: add documentation.
        git-gc --auto: move threshold check to need_to_gc() function.
        repack -A -d: use --keep-unreachable when repacking
        pack-objects --keep-unreachable
        Export matches_pack_name() and fix its return value
        Invoke "git gc --auto" from commit, merge, am and rebase.
        Implement git gc --auto
      0341091a
    • J
      Merge branch 'je/hooks' · e56f6359
      Junio C Hamano 提交于
      * je/hooks:
        post-checkout hook, tests, and docs
      e56f6359
    • J
      Merge branch 'ap/dateformat' · 5e5b2b98
      Junio C Hamano 提交于
      * ap/dateformat:
        Add a test script for for-each-ref, including test of date formatting
        dateformat: parse %(xxdate) %(yydate:format) correctly
        Make for-each-ref's grab_date() support per-atom formatting
        Make for-each-ref allow atom names like "<name>:<something>"
        parse_date_format(): convert a format name to an enum date_mode
      5e5b2b98
    • J
      Sync with GIT 1.5.3.4 · fed276e7
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fed276e7
    • J
      GIT 1.5.3.4 · 4c75136f
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4c75136f
    • A
    • C
      Add test case for ls-files --with-tree · 54e1abce
      Carl Worth 提交于
      This tests basic functionality and also exercises a bug noticed
      by Keith Packard, (prune_cache followed by add_index_entry can
      trigger an attempt to realloc a pointer into the middle of an
      allocated buffer).
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      54e1abce
    • K
      Must not modify the_index.cache as it may be passed to realloc at some point. · 95af39fc
      Keith Packard 提交于
      The index cache is not static, growing as new entries are added. If
      entries are added after prune_cache is called, cache will no longer
      point at the base of the allocation, and realloc will not be happy.
      
      I verified that this was the only place in the current source which
      modified any index_state.cache elements aside from the alloc/realloc
      calls in read-cache by changing the type of the element to 'struct
      cache_entry ** const cache' and recompiling.
      
      A more efficient patch would create a separate 'cache_base' value to
      track the allocation and then fix things up when reallocation was
      necessary, instead of the brute-force memmove used here.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      95af39fc
    • R
      the ar tool is called gar on some systems · 96e24abc
      Robert Schiele 提交于
      Some systems that have only installed the GNU toolchain (prefixed with "g")
      do not provide "ar" but only "gar".  Make configure find this tool as well.
      Signed-off-by: NRobert Schiele <rschiele@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      96e24abc
    • J
    • J
      diffcore-rename: cache file deltas · eede7b7d
      Jeff King 提交于
      We find rename candidates by computing a fingerprint hash of
      each file, and then comparing those fingerprints. There are
      inherently O(n^2) comparisons, so it pays in CPU time to
      hoist the (rather expensive) computation of the fingerprint
      out of that loop (or to cache it once we have computed it once).
      
      Previously, we didn't keep the filespec information around
      because then we had the potential to consume a great deal of
      memory. However, instead of keeping all of the filespec
      data, we can instead just keep the fingerprint.
      
      This patch implements and uses diff_free_filespec_data_large
      to accomplish that goal. We also have to change
      estimate_similarity not to needlessly repopulate the
      filespec data when we already have the hash.
      
      Practical tests showed 4.5x speedup for a 10% memory usage
      increase.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      eede7b7d
    • J
      Mention 'cpio' dependency in INSTALL · 2ff5e18a
      Johan Herland 提交于
      Signed-off-by: NJohan Herland <johan@herland.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2ff5e18a