1. 25 10月, 2012 10 次提交
    • J
      Merge branch 'jk/strbuf-detach-always-non-null' · 2cfceefa
      Jeff King 提交于
      * jk/strbuf-detach-always-non-null:
        strbuf: always return a non-NULL value from strbuf_detach
      2cfceefa
    • J
      Merge branch 'js/mingw-fflush-errno' · bbbd0573
      Jeff King 提交于
      * js/mingw-fflush-errno:
        maybe_flush_or_die: move a too-loose Windows specific error
      bbbd0573
    • J
      Merge branch 'da/mergetools-p4' · 33d3c6bb
      Jeff King 提交于
      * da/mergetools-p4:
        mergetools/p4merge: Handle "/dev/null"
      33d3c6bb
    • J
      Merge branch 'jc/test-say-color-avoid-echo-escape' · 4cd31a63
      Jeff King 提交于
      Recent nd/wildmatch series was the first to reveal this ancient bug
      in the test scaffolding.
      
      * jc/test-say-color-avoid-echo-escape:
        test-lib: Fix say_color () not to interpret \a\b\c in the message
      4cd31a63
    • J
      Merge branch 'nd/attr-match-optim' · 70d18257
      Jeff King 提交于
      Trivial and obvious optimization for finding attributes that match
      a given path.
      
      * nd/attr-match-optim:
        attr: avoid searching for basename on every match
        attr: avoid strlen() on every match
      70d18257
    • J
      Merge branch 'jk/peel-ref' · 315ea32f
      Jeff King 提交于
      Speeds up "git upload-pack" (what is invoked by "git fetch" on the
      other side of the connection) by reducing the cost to advertise the
      branches and tags that are available in the repository.
      
      * jk/peel-ref:
        upload-pack: use peel_ref for ref advertisements
        peel_ref: check object type before loading
        peel_ref: do not return a null sha1
        peel_ref: use faster deref_tag_noverify
      315ea32f
    • J
      Merge branch 'bw/config-lift-variable-name-length-limit' · 6a83a6d5
      Jeff King 提交于
      The configuration parser had an unnecessary hardcoded limit on
      variable names that was not checked consistently. Lift the limit.
      
      * bw/config-lift-variable-name-length-limit:
        Remove the hard coded length limit on variable names in config files
      6a83a6d5
    • J
      Merge branch 'fa/remote-svn' · 530f2375
      Jeff King 提交于
      A GSoC project.
      
      * fa/remote-svn:
        Add a test script for remote-svn
        remote-svn: add marks-file regeneration
        Add a svnrdump-simulator replaying a dump file for testing
        remote-svn: add incremental import
        remote-svn: Activate import/export-marks for fast-import
        Create a note for every imported commit containing svn metadata
        vcs-svn: add fast_export_note to create notes
        Allow reading svn dumps from files via file:// urls
        remote-svn, vcs-svn: Enable fetching to private refs
        When debug==1, start fast-import with "--stats" instead of "--quiet"
        Add documentation for the 'bidi-import' capability of remote-helpers
        Connect fast-import to the remote-helper via pipe, adding 'bidi-import' capability
        Add argv_array_detach and argv_array_free_detached
        Add svndump_init_fd to allow reading dumps from arbitrary FDs
        Add git-remote-testsvn to Makefile
        Implement a remote helper for svn in C
      530f2375
    • J
      Merge branch 'jm/diff-context-config' · 8de8f9f6
      Jeff King 提交于
      Teaches a new configuration variable to "git diff" Porcelain and
      its friends.
      
      * jm/diff-context-config:
        t4055: avoid use of sed 'a' command
        diff: diff.context configuration gives default to -U
      8de8f9f6
    • J
      Merge branch 'jk/no-more-pre-exec-callback' · 55ff6300
      Jeff King 提交于
      Removes a workaround for buggy version of less older than version
      406.
      
      * jk/no-more-pre-exec-callback:
        pager: drop "wait for output to run less" hack
      55ff6300
  2. 22 10月, 2012 1 次提交
  3. 19 10月, 2012 1 次提交
    • J
      strbuf: always return a non-NULL value from strbuf_detach · 08ad56f3
      Jeff King 提交于
      The current behavior is to return NULL when strbuf did not
      actually allocate a string. This can be quite surprising to
      callers, though, who may feed the strbuf from arbitrary data
      and expect to always get a valid value.
      
      In most cases, it does not make a difference because calling
      any strbuf function will cause an allocation (even if the
      function ends up not inserting any data). But if the code is
      structured like:
      
        struct strbuf buf = STRBUF_INIT;
        if (some_condition)
      	  strbuf_addstr(&buf, some_string);
        return strbuf_detach(&buf, NULL);
      
      then you may or may not return NULL, depending on the
      condition. This can cause us to segfault in http-push
      (when fed an empty URL) and in http-backend (when an empty
      parameter like "foo=bar&&" is in the $QUERY_STRING).
      
      This patch forces strbuf_detach to allocate an empty
      NUL-terminated string when it is called on a strbuf that has
      not been allocated.
      
      I investigated all call-sites of strbuf_detach. The majority
      are either not affected by the change (because they call a
      strbuf_* function unconditionally), or can handle the empty
      string just as easily as NULL.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      08ad56f3
  4. 18 10月, 2012 19 次提交
  5. 17 10月, 2012 7 次提交
  6. 16 10月, 2012 2 次提交