1. 15 3月, 2018 4 次提交
    • B
      upload-pack: convert to a builtin · a3d6b53e
      Brandon Williams 提交于
      In order to allow for code sharing with the server-side of fetch in
      protocol-v2 convert upload-pack to be a builtin.
      Signed-off-by: NBrandon Williams <bmwill@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a3d6b53e
    • B
      pkt-line: add delim packet support · a4cfd41c
      Brandon Williams 提交于
      One of the design goals of protocol-v2 is to improve the semantics of
      flush packets.  Currently in protocol-v1, flush packets are used both to
      indicate a break in a list of packet lines as well as an indication that
      one side has finished speaking.  This makes it particularly difficult
      to implement proxies as a proxy would need to completely understand git
      protocol instead of simply looking for a flush packet.
      
      To do this, introduce the special deliminator packet '0001'.  A delim
      packet can then be used as a deliminator between lists of packet lines
      while flush packets can be reserved to indicate the end of a response.
      
      Documentation for how this packet will be used in protocol v2 will
      included in a future patch.
      Signed-off-by: NBrandon Williams <bmwill@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a4cfd41c
    • B
      pkt-line: allow peeking a packet line without consuming it · 77dabc14
      Brandon Williams 提交于
      Sometimes it is advantageous to be able to peek the next packet line
      without consuming it (e.g. to be able to determine the protocol version
      a server is speaking).  In order to do that introduce 'struct
      packet_reader' which is an abstraction around the normal packet reading
      logic.  This enables a caller to be able to peek a single line at a time
      using 'packet_reader_peek()' and having a caller consume a line by
      calling 'packet_reader_read()'.
      Signed-off-by: NBrandon Williams <bmwill@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      77dabc14
    • B
      pkt-line: introduce packet_read_with_status · 2153d478
      Brandon Williams 提交于
      The current pkt-line API encodes the status of a pkt-line read in the
      length of the read content.  An error is indicated with '-1', a flush
      with '0' (which can be confusing since a return value of '0' can also
      indicate an empty pkt-line), and a positive integer for the length of
      the read content otherwise.  This doesn't leave much room for allowing
      the addition of additional special packets in the future.
      
      To solve this introduce 'packet_read_with_status()' which reads a packet
      and returns the status of the read encoded as an 'enum packet_status'
      type.  This allows for easily identifying between special and normal
      packets as well as errors.  It also enables easily adding a new special
      packet in the future.
      Signed-off-by: NBrandon Williams <bmwill@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2153d478
  2. 29 12月, 2017 17 次提交
    • J
      Git 2.16-rc0 · 1eaabe34
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1eaabe34
    • J
      Merge branch 'sb/describe-blob' · 556de1a8
      Junio C Hamano 提交于
      "git describe" was taught to dig trees deeper to find a
      <commit-ish>:<path> that refers to a given blob object.
      
      * sb/describe-blob:
        builtin/describe.c: describe a blob
        builtin/describe.c: factor out describe_commit
        builtin/describe.c: print debug statements earlier
        builtin/describe.c: rename `oid` to avoid variable shadowing
        revision.h: introduce blob/tree walking in order of the commits
        list-objects.c: factor out traverse_trees_and_blobs
        t6120: fix typo in test name
      556de1a8
    • J
      Merge branch 'hi/merge-verify-sig-config' · 0433d533
      Junio C Hamano 提交于
      "git merge" learned to pay attention to merge.verifySignatures
      configuration variable and pretend as if '--verify-signatures'
      option was given from the command line.
      
      * hi/merge-verify-sig-config:
        t5573, t7612: clean up after unexpected success of 'pull' and 'merge'
        t: add tests for pull --verify-signatures
        merge: add config option for verifySignatures
      0433d533
    • J
      Merge branch 'ws/curl-http-proxy-over-https' · fc4a226b
      Junio C Hamano 提交于
      Git has been taught to support an https:// URL used for http.proxy
      when using recent versions of libcurl.
      
      * ws/curl-http-proxy-over-https:
        http: support CURLPROXY_HTTPS
      fc4a226b
    • J
      Merge branch 'ks/doc-previous-checkout' · f53edaf2
      Junio C Hamano 提交于
      Doc update.
      
      * ks/doc-previous-checkout:
        Doc/check-ref-format: clarify information about @{-N} syntax
      f53edaf2
    • J
      Merge branch 'ks/rebase-error-messages' · 594672d2
      Junio C Hamano 提交于
      Error messages from "git rebase" have been somewhat cleaned up.
      
      * ks/rebase-error-messages:
        rebase: rebasing can also be done when HEAD is detached
        rebase: distinguish user input by quoting it
        rebase: consistently use branch_name variable
      594672d2
    • J
      Merge branch 'sr/http-sslverify-config-doc' · 593fdcc0
      Junio C Hamano 提交于
      Docfix.
      
      * sr/http-sslverify-config-doc:
        config: document default value of http.sslVerify
      593fdcc0
    • J
      Merge branch 'nm/imap-send-quote-server-folder-name' · 9368a3d0
      Junio C Hamano 提交于
      "git imap-send" did not correctly quote the folder name when
      making a request to the server, which has been corrected.
      
      * nm/imap-send-quote-server-folder-name:
        imap-send: URI encode server folder
      9368a3d0
    • J
      Merge branch 'bp/fsmonitor' · 8e777af2
      Junio C Hamano 提交于
      Test fix.
      
      * bp/fsmonitor:
        p7519: improve check for prerequisite WATCHMAN
      8e777af2
    • J
      Merge branch 'jh/partial-clone-doc' · f40e83d6
      Junio C Hamano 提交于
      * jh/partial-clone-doc:
        partial-clone: design doc
      f40e83d6
    • J
      Merge branch 'jt/transport-hide-vtable' · 2546de27
      Junio C Hamano 提交于
      Code clean-up.
      
      * jt/transport-hide-vtable:
        transport: make transport vtable more private
        clone, fetch: remove redundant transport check
      2546de27
    • J
      Merge branch 'js/enhanced-version-info' · 58d1772c
      Junio C Hamano 提交于
      "git version --build-options" learned to report the host CPU and
      the exact commit object name the binary was built from.
      
      * js/enhanced-version-info:
        version --build-options: report commit, too, if possible
        version --build-options: also report host CPU
      58d1772c
    • J
      Merge branch 'tz/lib-git-svn-svnserve-tests' · deeb2fce
      Junio C Hamano 提交于
      * tz/lib-git-svn-svnserve-tests:
        t/lib-git-svn.sh: improve svnserve tests with parallel make test
        t/lib-git-svn: cleanup inconsistent tab/space usage
      deeb2fce
    • J
      Merge branch 'ew/svn-crlf' · 63dd5448
      Junio C Hamano 提交于
      "git svn" has been updated to strip CRs in the commit messages, as
      recent versions of Subversion rejects them.
      
      * ew/svn-crlf:
        git-svn: convert CRLF to LF in commit message to SVN
      63dd5448
    • J
      Merge branch 'cc/skip-to-optional-val' · f427b949
      Junio C Hamano 提交于
      Introduce a helper to simplify code to parse a common pattern that
      expects either "--key" or "--key=<something>".
      
      * cc/skip-to-optional-val:
        t4045: reindent to make helpers readable
        diff: add tests for --relative without optional prefix value
        diff: use skip_to_optional_arg_default() in parsing --relative
        diff: use skip_to_optional_arg_default()
        diff: use skip_to_optional_arg()
        index-pack: use skip_to_optional_arg()
        git-compat-util: introduce skip_to_optional_arg()
      f427b949
    • J
      Merge branch 'ra/prompt-eread-fix' · 5abbdbbd
      Junio C Hamano 提交于
      Update the shell prompt script (in contrib/) to strip trailing CR
      from strings read from various "state" files.
      
      * ra/prompt-eread-fix:
        git-prompt: fix reading files with windows line endings
        git-prompt: make __git_eread intended use explicit
      5abbdbbd
    • J
      Merge branch 'bw/path-doc' · 1f24cad8
      Junio C Hamano 提交于
      Doc updates.
      
      * bw/path-doc:
        path: document path functions
      1f24cad8
  3. 28 12月, 2017 19 次提交
    • J
      RelNotes: the eleventh batch · 29533fb1
      Junio C Hamano 提交于
      Hopefully the last one before -rc0
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      29533fb1
    • J
      Merge branch 'rb/quick-install-doc' · dc8fb4dd
      Junio C Hamano 提交于
      The build procedure now allows not just the repositories but also
      the refs to be used to take pre-formatted manpages and html
      documents to install.
      
      * rb/quick-install-doc:
        install-doc-quick: allow specifying what ref to install
      dc8fb4dd
    • J
      Merge branch 'jt/transport-no-more-rsync' · d22114ac
      Junio C Hamano 提交于
      Code clean-up.
      
      * jt/transport-no-more-rsync:
        transport: remove unused "push" in vtable
      d22114ac
    • J
      Merge branch 'sg/travis-fixes' · f62b471d
      Junio C Hamano 提交于
      Assorted updates for TravisCI integration.
      
      * sg/travis-fixes:
        travis-ci: use 'set -x' in 'ci/*' scripts for extra tracing output
        travis-ci: set GIT_TEST_HTTPD in 'ci/lib-travisci.sh'
        travis-ci: move setting environment variables to 'ci/lib-travisci.sh'
        travis-ci: introduce a $jobname variable for 'ci/*' scripts
      f62b471d
    • J
      Merge branch 'sb/test-helper-excludes' · 06358125
      Junio C Hamano 提交于
      Simplify the ignore rules for t/helper directory.
      
      * sb/test-helper-excludes:
        t/helper: ignore everything but sources
      06358125
    • J
      Merge branch 'ot/pretty' · 6bd396be
      Junio C Hamano 提交于
      Code clean-up.
      
      * ot/pretty:
        format: create docs for pretty.h
        format: create pretty.h file
      6bd396be
    • J
      Merge branch 'bw/submodule-sans-cache-compat' · 00c4d2b6
      Junio C Hamano 提交于
      Code clean-up.
      
      * bw/submodule-sans-cache-compat:
        submodule: convert get_next_submodule to not rely on the_index
        submodule: used correct index in is_staging_gitmodules_ok
        submodule: convert stage_updated_gitmodules to take a struct index_state
      00c4d2b6
    • J
      Merge branch 'es/clone-shared-worktree' · 237aa99c
      Junio C Hamano 提交于
      "git clone --shared" to borrow from a (secondary) worktree did not
      work, even though "git clone --local" did.  Both are now accepted.
      
      * es/clone-shared-worktree:
        clone: support 'clone --shared' from a worktree
      237aa99c
    • J
      Merge branch 'tb/delimit-pretty-trailers-args-with-comma' · e2e2bf24
      Junio C Hamano 提交于
      Doc updates.
      
      * tb/delimit-pretty-trailers-args-with-comma:
        docs/pretty-formats: mention commas in %(trailers) syntax
      e2e2bf24
    • J
      Merge branch 'rs/fmt-merge-msg-leakfix' · 54b1335a
      Junio C Hamano 提交于
      Leakfix.
      
      * rs/fmt-merge-msg-leakfix:
        transport-helper: plug strbuf and string_list leaks
      54b1335a
    • J
      Merge branch 'jt/decorate-api' · eacf669c
      Junio C Hamano 提交于
      A few structures and variables that are implementation details of
      the decorate API have been renamed and then the API got documented
      better.
      
      * jt/decorate-api:
        decorate: clean up and document API
      eacf669c
    • J
      Merge branch 'jk/cvsimport-quoting' · 6ae18684
      Junio C Hamano 提交于
      Typo/Logico fix.
      
      * jk/cvsimport-quoting:
        cvsimport: apply shell-quoting regex globally
      6ae18684
    • J
      Merge branch 'db/doc-workflows-neuter-the-maintainer' · f7bbca1c
      Junio C Hamano 提交于
      Docfix.
      
      * db/doc-workflows-neuter-the-maintainer:
        doc: reword gitworkflows.txt for neutrality
      f7bbca1c
    • J
      Merge branch 'ks/branch-cleanup' · 0faff988
      Junio C Hamano 提交于
      Code clean-up.
      
      * ks/branch-cleanup:
        builtin/branch: strip refs/heads/ using skip_prefix
        branch: update warning message shown when copying a misnamed branch
        branch: group related arguments of create_branch()
        branch: improve documentation and naming of create_branch() parameters
      0faff988
    • J
      Merge branch 'rs/strbuf-read-once-reset-length' · a13e45f1
      Junio C Hamano 提交于
      Leakfix.
      
      * rs/strbuf-read-once-reset-length:
        strbuf: release memory on read error in strbuf_read_once()
      a13e45f1
    • J
      Merge branch 'rs/fmt-merge-msg-string-leak-fix' · 1f9ce78d
      Junio C Hamano 提交于
      Leakfix.
      
      * rs/fmt-merge-msg-string-leak-fix:
        fmt-merge-msg: avoid leaking strbuf in shortlog()
      1f9ce78d
    • J
      Merge branch 'rs/am-builtin-leakfix' · 5c14bd61
      Junio C Hamano 提交于
      Leakfix.
      
      * rs/am-builtin-leakfix:
        am: release strbuf after use in split_mail_mbox()
      5c14bd61
    • J
      Merge branch 'es/worktree-checkout-hook' · e87f9fc9
      Junio C Hamano 提交于
      "git worktree add" learned to run the post-checkout hook, just like
      "git checkout" does, after the initial checkout.
      
      * es/worktree-checkout-hook:
        worktree: invoke post-checkout hook (unless --no-checkout)
      e87f9fc9
    • J
      Merge branch 'lb/rebase-i-short-command-names' · 0da2ba48
      Junio C Hamano 提交于
      With a configuration variable rebase.abbreviateCommands set,
      "git rebase -i" produces the todo list with a single-letter
      command names.
      
      * lb/rebase-i-short-command-names:
        sequencer.c: drop 'const' from function return type
        t3404: add test case for abbreviated commands
        rebase -i: learn to abbreviate command names
        rebase -i -x: add exec commands via the rebase--helper
        rebase -i: update functions to use a flags parameter
        rebase -i: replace reference to sha1 with oid
        rebase -i: refactor transform_todo_ids
        rebase -i: set commit to null in exec commands
        Documentation: use preferred name for the 'todo list' script
        Documentation: move rebase.* configs to new file
      0da2ba48