1. 21 9月, 2012 2 次提交
    • S
      Enable info/refs gzip decompression in HTTP client · aa90b969
      Shawn O. Pearce 提交于
      Some HTTP servers try to use gzip compression on the /info/refs
      request to save transfer bandwidth. Repositories with many tags
      may find the /info/refs request can be gzipped to be 50% of the
      original size due to the few but often repeated bytes used (hex
      SHA-1 and commonly digits in tag names).
      
      For most HTTP requests enable "Accept-Encoding: gzip" ensuring
      the /info/refs payload can use this encoding format.
      
      Only request gzip encoding from servers. Although deflate is
      supported by libcurl, most servers have standardized on gzip
      encoding for compression as that is what most browsers support.
      Asking for deflate increases request sizes by a few bytes, but is
      unlikely to ever be used by a server.
      
      Disable the Accept-Encoding header on probe RPCs as response bodies
      are supposed to be exactly 4 bytes long, "0000". The HTTP headers
      requesting and indicating compression use more space than the data
      transferred in the body.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      aa90b969
    • F
      completion: fix shell expansion of items · 25ae7cfd
      Felipe Contreras 提交于
      As reported by Jeroen Meijer[1]; the current code doesn't deal properly
      with items (tags, branches, etc.) that have ${} in them because they get
      expaned by bash while using compgen.
      
      A simple solution is to quote the items so they get expanded properly
      (\$\{\}).
      
      In order to achieve that I took bash-completion's quote() function,
      which is rather simple, and renamed it to __git_quote() as per Jeff
      King's suggestion.
      
      Solves the original problem for me.
      
      [1] http://article.gmane.org/gmane.comp.version-control.git/201596Signed-off-by: NFelipe Contreras <felipe.contreras@gmail.com>
      Acked-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      25ae7cfd
  2. 19 9月, 2012 5 次提交
  3. 18 9月, 2012 4 次提交
  4. 17 9月, 2012 1 次提交
  5. 15 9月, 2012 11 次提交
  6. 14 9月, 2012 1 次提交
    • J
      attr: failure to open a .gitattributes file is OK with ENOTDIR · 8e950dab
      Junio C Hamano 提交于
      Often we consult an in-tree .gitattributes file that exists per
      directory.  Majority of directories do not usually have such a file,
      and it is perfectly fine if we cannot open it because there is no
      such file, but we do want to know when there is an I/O or permission
      error.  Earlier, we made the codepath warn when we fail to open it
      for reasons other than ENOENT for that reason.
      
      We however sometimes have to attempt to open the .gitattributes file
      from a directory that does not exist in the commit that is currently
      checked out.  "git pack-objects" wants to know if a path is marked
      with "-delta" attributes, and "git archive" wants to know about
      export-ignore and export-subst attributes.  Both commands may and do
      need to ask the attributes system about paths in an arbitrary
      commit.  "git diff", after removing an entire directory, may want to
      know textconv on paths that used to be in that directory.
      
      Make sure we also ignore a failure to open per-directory attributes
      file due to ENOTDIR.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8e950dab
  7. 13 9月, 2012 7 次提交
    • J
      Further merging in preparation for 1.7.12.1 · e70d1632
      Junio C Hamano 提交于
      Describe the following in the draft release notes:
      
       . jc/apply-binary-p0
       . jc/dotdot-is-parent-directory
       . jc/maint-doc-checkout-b-always-takes-branch-name
       . jk/maint-http-half-auth-push
       . kk/maint-for-each-ref-multi-sort
      
      Yet to be merged before 1.7.12.1 are:
      
       . jk/config-warn-on-inaccessible-paths
       . jk/maint-quiet-is-synonym-to-s-in-log
       . mz/cherry-pick-cmdline-order
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e70d1632
    • J
      Merge branch 'maint-1.7.11' into maint · 3503e9ab
      Junio C Hamano 提交于
      3503e9ab
    • J
      Merge branch 'jc/apply-binary-p0' into maint-1.7.11 · 1403db49
      Junio C Hamano 提交于
      "git apply -p0" did not parse pathnames on "diff --git" line
      correctly.  This caused patches that had pathnames in no other
      places to be mistakenly rejected (most notably, binary patch that
      does not rename nor change mode).  Textual patches, renames or mode
      changes have preimage and postimage pathnames in different places in
      a form that can be parsed unambiguously and did not suffer from this
      problem.
      
      * jc/apply-binary-p0:
        apply: compute patch->def_name correctly under -p0
      1403db49
    • J
      Merge branch 'jc/dotdot-is-parent-directory' into maint-1.7.11 · eaff724b
      Junio C Hamano 提交于
      "git log .." errored out saying it is both rev range and a path when
      there is no disambiguating "--" is on the command line.  Update the
      command line parser to interpret ".." as a path in such a case.
      
      * jc/dotdot-is-parent-directory:
        specifying ranges: we did not mean to make ".." an empty set
      eaff724b
    • J
      Merge branch 'jc/maint-doc-checkout-b-always-takes-branch-name' into maint-1.7.11 · 1b8bc86b
      Junio C Hamano 提交于
      The synopsis said "checkout [-B branch]" to make it clear the
      branch name is a parameter to the option, but the heading for the
      option description was "-B::", not "-B branch::", making the
      documentation misleading.
      
      * jc/maint-doc-checkout-b-always-takes-branch-name:
        doc: "git checkout -b/-B/--orphan" always takes a branch name
      1b8bc86b
    • J
      Merge branch 'jk/maint-http-half-auth-push' into maint-1.7.11 · 7d9483c2
      Junio C Hamano 提交于
      Pushing to smart HTTP server with recent Git fails without having
      the username in the URL to force authentication, if the server is
      configured to allow GET anonymously, while requiring authentication
      for POST.
      
      * jk/maint-http-half-auth-push:
        http: prompt for credentials on failed POST
        http: factor out http error code handling
        t: test http access to "half-auth" repositories
        t: test basic smart-http authentication
        t/lib-httpd: recognize */smart/* repos as smart-http
        t/lib-httpd: only route auth/dumb to dumb repos
        t5550: factor out http auth setup
        t5550: put auth-required repo in auth/dumb
      7d9483c2
    • J
      Merge branch 'kk/maint-for-each-ref-multi-sort' into maint-1.7.11 · 92c830dd
      Junio C Hamano 提交于
      "git for-each-ref" did not honor multiple "--sort=<key>" arguments
      correctly.
      
      * kk/maint-for-each-ref-multi-sort:
        for-each-ref: Fix sort with multiple keys
        t6300: test sort with multiple keys
      92c830dd
  8. 12 9月, 2012 9 次提交