1. 29 10月, 2016 13 次提交
    • J
      Merge branch 'jk/merge-base-fork-point-without-reflog' into maint · 96ec83ce
      Junio C Hamano 提交于
      "git rebase" immediately after "git clone" failed to find the fork
      point from the upstream.
      
      * jk/merge-base-fork-point-without-reflog:
        merge-base: handle --fork-point without reflog
      96ec83ce
    • J
      Merge branch 'dk/worktree-dup-checkout-with-bare-is-ok' into maint · a5406125
      Junio C Hamano 提交于
      In a worktree connected to a repository elsewhere, created via "git
      worktree", "git checkout" attempts to protect users from confusion
      by refusing to check out a branch that is already checked out in
      another worktree.  However, this also prevented checking out a
      branch, which is designated as the primary branch of a bare
      reopsitory, in a worktree that is connected to the bare
      repository.  The check has been corrected to allow it.
      
      * dk/worktree-dup-checkout-with-bare-is-ok:
        worktree: allow the main brach of a bare repository to be checked out
      a5406125
    • J
      Merge branch 'sb/submodule-config-doc-drop-path' into maint · a42539f7
      Junio C Hamano 提交于
      The "submodule.<name>.path" stored in .gitmodules is never copied
      to .git/config and such a key in .git/config has no meaning, but
      the documentation described it and submodule.<name>.url next to
      each other as if both belong to .git/config.  This has been fixed.
      
      * sb/submodule-config-doc-drop-path:
        documentation: improve submodule.<name>.{url, path} description
      a42539f7
    • J
      Merge branch 'jk/ref-symlink-loop' into maint · 42a9c6c0
      Junio C Hamano 提交于
      A stray symbolic link in $GIT_DIR/refs/ directory could make name
      resolution loop forever, which has been corrected.
      
      * jk/ref-symlink-loop:
        files_read_raw_ref: prevent infinite retry loops in general
        files_read_raw_ref: avoid infinite loop on broken symlinks
      42a9c6c0
    • J
      Merge branch 'nd/commit-p-doc' into maint · e2f1d2c3
      Junio C Hamano 提交于
      Documentation for "git commit" was updated to clarify that "commit
      -p <paths>" adds to the current contents of the index to come up
      with what to commit.
      
      * nd/commit-p-doc:
        git-commit.txt: clarify --patch mode with pathspec
      e2f1d2c3
    • J
      Merge branch 'jk/clone-copy-alternates-fix' into maint · 839b993f
      Junio C Hamano 提交于
      "git clone" of a local repository can be done at the filesystem
      level, but the codepath did not check errors while copying and
      adjusting the file that lists alternate object stores.
      
      * jk/clone-copy-alternates-fix:
        clone: detect errors in normalize_path_copy
      839b993f
    • J
      Merge branch 'dt/http-empty-auth' into maint · 50a6f65c
      Junio C Hamano 提交于
      http.emptyauth configuration is a way to allow an empty username to
      pass when attempting to authenticate using mechanisms like
      Kerberos.  We took an unspecified (NULL) username and sent ":"
      (i.e. no username, no password) to CURLOPT_USERPWD, but did not do
      the same when the username is explicitly set to an empty string.
      
      * dt/http-empty-auth:
        http: http.emptyauth should allow empty (not just NULL) usernames
      50a6f65c
    • J
      Merge branch 'dp/autoconf-curl-ssl' into maint · c00837c4
      Junio C Hamano 提交于
      The ./configure script generated from configure.ac was taught how
      to detect support of SSL by libcurl better.
      
      * dp/autoconf-curl-ssl:
        ./configure.ac: detect SSL in libcurl using curl-config
      c00837c4
    • J
      Merge branch 'ak/curl-imap-send-explicit-scheme' into maint · f98180a9
      Junio C Hamano 提交于
      When we started cURL to talk to imap server when a new enough
      version of cURL library is available, we forgot to explicitly add
      imap(s):// before the destination.  To some folks, that didn't work
      and the library tried to make HTTP(s) requests instead.
      
      * ak/curl-imap-send-explicit-scheme:
        imap-send: Tell cURL to use imap:// or imaps://
      f98180a9
    • J
      Merge branch 'jt/fetch-pack-in-vain-count-with-stateless' into maint · 9338904a
      Junio C Hamano 提交于
      When "git fetch" tries to find where the history of the repository
      it runs in has diverged from what the other side has, it has a
      mechanism to avoid digging too deep into irrelevant side branches.
      This however did not work well over the "smart-http" transport due
      to a design bug, which has been fixed.
      
      * jt/fetch-pack-in-vain-count-with-stateless:
        fetch-pack: do not reset in_vain on non-novel acks
      9338904a
    • J
      Merge branch 'js/regexec-buf' into maint · 68eb7b1b
      Junio C Hamano 提交于
      A follow-up to an already graduated topic.
      
      * js/regexec-buf:
        configure.ac: improve description of NO_REGEX test
      68eb7b1b
    • J
      Merge branch 'rs/c-auto-resets-attributes' into maint · 76796d42
      Junio C Hamano 提交于
      When "%C(auto)" appears at the very beginning of the pretty format
      string, it did not need to issue the reset sequence, but it did.
      This is a small optimization to already graduated topic.
      
      * rs/c-auto-resets-attributes:
        pretty: avoid adding reset for %C(auto) if output is empty
        pretty: let %C(auto) reset all attributes
      76796d42
    • J
      Merge branch 'yk/git-tag-remove-mention-of-old-layout-in-doc' into maint · 03969dff
      Junio C Hamano 提交于
      Shorten description of auto-following in "git tag" by removing a
      mention of historical remotes layout which is not relevant to the
      main topic.
      
      * yk/git-tag-remove-mention-of-old-layout-in-doc:
        doc: remove reference to the traditional layout in git-tag.txt
      03969dff
  2. 21 10月, 2016 1 次提交
  3. 18 10月, 2016 1 次提交
  4. 16 10月, 2016 1 次提交
  5. 15 10月, 2016 1 次提交
  6. 13 10月, 2016 2 次提交
  7. 12 10月, 2016 13 次提交
    • J
      Start preparing for 2.10.2 · 74eeaf7b
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      74eeaf7b
    • J
      Merge branch 'jk/verify-packfile-gently' into maint · 6823506f
      Junio C Hamano 提交于
      A low-level function verify_packfile() was meant to show errors
      that were detected without dying itself, but under some conditions
      it didn't and died instead, which has been fixed.
      
      * jk/verify-packfile-gently:
        verify_packfile: check pack validity before accessing data
      6823506f
    • J
      Merge branch 'jc/worktree-config' into maint · fdb70b16
      Junio C Hamano 提交于
      "git worktree", even though it used the default_abbrev setting that
      ought to be affected by core.abbrev configuration variable, ignored
      the variable setting.  The command has been taught to read the
      default set of configuration variables to correct this.
      
      * jc/worktree-config:
        worktree: honor configuration variables
      fdb70b16
    • J
      Merge branch 'jc/verify-loose-object-header' into maint · f7f0a87e
      Junio C Hamano 提交于
      Codepaths that read from an on-disk loose object were too loose in
      validating what they are reading is a proper object file and
      sometimes read past the data they read from the disk, which has
      been corrected.  H/t to Gustavo Grieco for reporting.
      
      * jc/verify-loose-object-header:
        unpack_sha1_header(): detect malformed object header
        streaming: make sure to notice corrupt object
      f7f0a87e
    • J
      Merge branch 'rs/git-gui-use-modern-git-merge-syntax' into maint · 0bc409da
      Junio C Hamano 提交于
      The original command line syntax for "git merge", which was "git
      merge <msg> HEAD <parent>...", has been deprecated for quite some
      time, and "git gui" was the last in-tree user of the syntax.  This
      is finally fixed, so that we can move forward with the deprecation.
      
      * rs/git-gui-use-modern-git-merge-syntax:
        git-gui: stop using deprecated merge syntax
      0bc409da
    • J
      Merge branch 'kd/mailinfo-quoted-string' into maint · e1eb84cc
      Junio C Hamano 提交于
      An author name, that spelled a backslash-quoted double quote in the
      human readable part "My \"double quoted\" name", was not unquoted
      correctly while applying a patch from a piece of e-mail.
      
      * kd/mailinfo-quoted-string:
        mailinfo: unescape quoted-pair in header fields
        t5100-mailinfo: replace common path prefix with variable
      e1eb84cc
    • J
      Merge branch 'pb/rev-list-reverse-with-count' into maint · 54a9f147
      Junio C Hamano 提交于
      Doc update to clarify what "log -3 --reverse" does.
      
      * pb/rev-list-reverse-with-count:
        rev-list-options: clarify the usage of --reverse
      54a9f147
    • J
      Merge branch 'jc/blame-abbrev' into maint · 9534df98
      Junio C Hamano 提交于
      Almost everybody uses DEFAULT_ABBREV to refer to the default
      setting for the abbreviation, but "git blame" peeked into
      underlying variable bypassing the macro for no good reason.
      
      * jc/blame-abbrev:
        blame: use DEFAULT_ABBREV macro
      9534df98
    • J
      Merge branch 'jk/graph-padding-fix' into maint · 18fd96f1
      Junio C Hamano 提交于
      The "graph" API used in "git log --graph" miscounted the number of
      output columns consumed so far when drawing a padding line, which
      has been fixed; this did not affect any existing code as nobody
      tried to write anything after the padding on such a line, though.
      
      * jk/graph-padding-fix:
        graph: fix extra spaces in graph_padding_line
      18fd96f1
    • J
      Merge branch 'sg/ref-filter-parse-optim' into maint · 1f253d88
      Junio C Hamano 提交于
      The code that parses the format parameter of for-each-ref command
      has seen a micro-optimization.
      
      * sg/ref-filter-parse-optim:
        ref-filter: strip format option after a field name only once while parsing
      1f253d88
    • J
      Merge branch 'rs/copy-array' into maint · a813b191
      Junio C Hamano 提交于
      Code cleanup.
      
      * rs/copy-array:
        use COPY_ARRAY
        add COPY_ARRAY
      a813b191
    • J
      Merge branch 'dt/mailinfo' into maint · f7e2e592
      Junio C Hamano 提交于
      * dt/mailinfo:
        add David Turner's Two Sigma address
      f7e2e592
    • S
      documentation: improve submodule.<name>.{url, path} description · 72710165
      Stefan Beller 提交于
      Unlike the url variable a user cannot override the the path variable,
      as it is part of the content together with the gitlink at the given
      path. To avoid confusion do not mention the .path variable in the config
      section and rely on the documentation provided in gitmodules[5].
      
      Enhance the description of submodule.<name>.url and mention its two use
      cases separately.
      Signed-off-by: NStefan Beller <sbeller@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      72710165
  8. 11 10月, 2016 3 次提交
    • J
      configure.ac: improve description of NO_REGEX test · 842a516c
      Jakub Narębski 提交于
      The commit 2f895225 ("regex: add regexec_buf() that can work on a
      non NUL-terminated string", 2016-09-21) changed description of
      NO_REGEX build config variable to be more neutral, and actually say
      that it is about support for REG_STARTEND.  Change description in
      configure.ac to match.
      
      Change also the test message and variable name to match.  The test
      just checks that REG_STARTEND is #defined.
      Issue-found-by: NRamsay Jones <ramsay@ramsayjones.plus.com>
      Signed-off-by: NJakub Narębski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      842a516c
    • J
      files_read_raw_ref: prevent infinite retry loops in general · e8c42cb9
      Jeff King 提交于
      Limit the number of retries to 3. That should be adequate to
      prevent any races, while preventing the possibility of
      infinite loops if the logic fails to handle any other
      possible error modes correctly.
      
      After the fix in the previous commit, there's no known way
      to trigger an infinite loop, but I did manually verify that
      this fixes the test in that commit even when the code change
      is not applied.
      Signed-off-by: NJeff King <peff@peff.net>
      Reviewed-by: NMichael Haggerty <mhagger@alum.mit.edu>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e8c42cb9
    • J
      files_read_raw_ref: avoid infinite loop on broken symlinks · 3f7bd767
      Jeff King 提交于
      Our ref resolution first runs lstat() on any path we try to
      look up, because we want to treat symlinks specially (by
      resolving them manually and considering them symrefs). But
      if the results of `readlink` do _not_ look like a ref, we
      fall through to treating it like a normal file, and just
      read the contents of the linked path.
      
      Since fcb7c762 (resolve_ref_unsafe(): close race condition
      reading loose refs, 2013-06-19), that "normal file" code
      path will stat() the file and if we see ENOENT, will jump
      back to the lstat(), thinking we've seen inconsistent
      results between the two calls. But for a symbolic ref, this
      isn't a race: the lstat() found the symlink, and the stat()
      is looking at the path it points to. We end up in an
      infinite loop calling lstat() and stat().
      
      We can fix this by avoiding the retry-on-inconsistent jump
      when we know that we found a symlink. While we're at it,
      let's add a comment explaining why the symlink case gets to
      this code in the first place; without that, it is not
      obvious that the correct solution isn't to avoid the stat()
      code path entirely.
      Signed-off-by: NJeff King <peff@peff.net>
      Reviewed-by: NMichael Haggerty <mhagger@alum.mit.edu>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3f7bd767
  9. 06 10月, 2016 2 次提交
    • J
      clone: detect errors in normalize_path_copy · 22d3b8de
      Jeff King 提交于
      When we are copying the alternates from the source
      repository, if we find a relative path that is too deep for
      the source (e.g., "../../../objects" from "/repo.git/objects"),
      then normalize_path_copy will report an error and leave
      trash in the buffer, which we will add to our new alternates
      file. Instead, let's detect the error, print a warning, and
      skip copying that alternate.
      
      There's no need to die. The relative path is probably just
      broken cruft in the source repo. If it turns out to have
      been important for accessing some objects, we rely on other
      parts of the clone to detect that, just as they would with a
      missing object in the source repo itself (though note that
      clones with "-s" are inherently local, which may do fewer
      object-quality checks in the first place).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      22d3b8de
    • D
      git-commit.txt: clarify --patch mode with pathspec · 7431596a
      Duy Nguyen 提交于
      How pathspec is used, with and without --interactive/--patch, is
      different. But this is not clear from the document. These changes hint
      the user to keep reading (to option #5) instead of stopping at #2 and
      assuming --patch/--interactive behaves the same way.
      
      And since all the options listed here always mention how the index is
      involved (or not) in the final commit, add that bit for #5 as well. This
      "on top of the index" is implied when you head over git-add(1), but if
      you just go straight to the "Interactive mode" and not read what git-add
      is for, you may miss it.
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7431596a
  10. 05 10月, 2016 1 次提交
  11. 04 10月, 2016 2 次提交