Skip to content
Snippets Groups Projects
  1. Jun 04, 2018
  2. Jun 01, 2018
    • Junio C Hamano's avatar
      A bit more topics before -rc1 · c2c7d17b
      Junio C Hamano authored
      
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      c2c7d17b
    • Junio C Hamano's avatar
      Merge branch 'bw/ref-prefix-for-configured-refspec' · 026b8ef9
      Junio C Hamano authored
      * bw/ref-prefix-for-configured-refspec:
        fetch: do not pass ref-prefixes for fetch by exact SHA1
      026b8ef9
    • Jonathan Nieder's avatar
      fetch: do not pass ref-prefixes for fetch by exact SHA1 · 6c301adb
      Jonathan Nieder authored
      
      When v2.18.0-rc0~10^2~1 (refspec: consolidate ref-prefix generation
      logic, 2018-05-16) factored out the ref-prefix generation code for
      reuse, it left out the 'if (!item->exact_sha1)' test in the original
      ref-prefix generation code. As a result, fetches by SHA-1 generate
      ref-prefixes as though the SHA-1 being fetched were an abbreviated ref
      name:
      
       $ GIT_TRACE_PACKET=1 bin-wrappers/git -c protocol.version=2 \
      	fetch origin 12039e00
      [...]
       packet:        fetch> ref-prefix 12039e00
       packet:        fetch> ref-prefix refs/12039e00
       packet:        fetch> ref-prefix refs/tags/12039e00
       packet:        fetch> ref-prefix refs/heads/12039e00
       packet:        fetch> ref-prefix refs/remotes/12039e00
       packet:        fetch> ref-prefix refs/remotes/12039e00/HEAD
       packet:        fetch> 0000
      
      If there is another ref name on the command line or the object being
      fetched is already available locally, then that's mostly harmless.
      But otherwise, we error out with
      
       fatal: no matching remote head
      
      since the server did not send any refs we are interested in.  Filter
      out the exact_sha1 refspecs to avoid this.
      
      This patch adds a test to check this behavior that notices another
      behavior difference between protocol v0 and v2 in the process.  Add a
      NEEDSWORK comment to clear it up.
      
      Signed-off-by: default avatarJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      6c301adb
    • Junio C Hamano's avatar
      Merge branch 'cc/tests-without-assuming-ref-files-backend' · d6e54842
      Junio C Hamano authored
      Quite a many tests assumed that newly created refs are made as
      loose refs using the files backend, which have been updated to use
      proper plumbing like rev-parse and update-ref, to avoid breakage
      once we start using different ref backends.
      
      * cc/tests-without-assuming-ref-files-backend:
        t990X: use '.git/objects' as 'deep inside .git' path
        t: make many tests depend less on the refs being files
      d6e54842
    • Junio C Hamano's avatar
      Merge branch 'rd/init-typo' · ba928e97
      Junio C Hamano authored
      Message fix.
      
      * rd/init-typo:
        init: fix grammar in "templates not found" msg
      ba928e97
    • Junio C Hamano's avatar
      Merge branch 'js/rebase-recreate-merge' · 95dd4b2b
      Junio C Hamano authored
      Hotfixes.
      
      * js/rebase-recreate-merge:
        sequencer: ensure labels that are object IDs are rewritten
        git-rebase--interactive: fix copy-paste mistake
      95dd4b2b
    • Junio C Hamano's avatar
      Merge branch 'rd/tag-doc-lightweight' · cbb408e6
      Junio C Hamano authored
      Docfix.
      
      * rd/tag-doc-lightweight:
        tag: clarify in the doc that a tag can refer to a non-commit object
      cbb408e6
    • Junio C Hamano's avatar
      Merge branch 'rd/doc-options-placeholder' · 7659bda0
      Junio C Hamano authored
      Docfix.
      
      * rd/doc-options-placeholder:
        Use proper syntax for replaceables in command docs
      7659bda0
    • Junio C Hamano's avatar
      Merge branch 'en/rev-parse-invalid-range' · 7cb4a974
      Junio C Hamano authored
      "git rev-parse Y..." etc. misbehaved when given endpoints were
      not committishes.
      
      * en/rev-parse-invalid-range:
        rev-parse: check lookup'ed commit references for NULL
      7cb4a974
    • Junio C Hamano's avatar
      Merge branch 'ld/p4-unshelve' · caf0c98c
      Junio C Hamano authored
      "git p4" learned to "unshelve" shelved commit from P4.
      
      * ld/p4-unshelve:
        git-p4: add unshelve command
      caf0c98c
    • Junio C Hamano's avatar
      Merge branch 'nd/use-opt-int-set-f' · e1149fd7
      Junio C Hamano authored
      Code simplification.
      
      * nd/use-opt-int-set-f:
        Use OPT_SET_INT_F() for cmdline option specification
      e1149fd7
    • Junio C Hamano's avatar
      Merge branch 'pa/import-tars-long-names' · 2bd108ff
      Junio C Hamano authored
      The import-tars script (in contrib/) has been taught to handle
      tarballs with overly long paths that use PAX extended headers.
      
      * pa/import-tars-long-names:
        import-tars: read overlong names from pax extended header
      2bd108ff
    • Junio C Hamano's avatar
      Merge branch 'nd/command-list' · 2289880f
      Junio C Hamano authored
      The list of commands with their various attributes were spread
      across a few places in the build procedure, but it now is getting a
      bit more consolidated to allow more automation.
      
      * nd/command-list:
        completion: allow to customize the completable command list
        completion: add and use --list-cmds=alias
        completion: add and use --list-cmds=nohelpers
        Move declaration for alias.c to alias.h
        completion: reduce completable command list
        completion: let git provide the completable command list
        command-list.txt: documentation and guide line
        help: use command-list.txt for the source of guides
        help: add "-a --verbose" to list all commands with synopsis
        git: support --list-cmds=list-<category>
        completion: implement and use --list-cmds=main,others
        git --list-cmds: collect command list in a string_list
        git.c: convert --list-* to --list-cmds=*
        Remove common-cmds.h
        help: use command-list.h for common command list
        generate-cmds.sh: export all commands to command-list.h
        generate-cmds.sh: factor out synopsis extract code
      2289880f
    • Junio C Hamano's avatar
      refspec-api: avoid uninitialized field in refspec item · c3072c6e
      Junio C Hamano authored
      
      When parse_refspec() function was created at 3eec3700 ("refspec:
      factor out parsing a single refspec", 2018-05-16) to take a caller
      supplied piece of memory to fill parsed refspec_item, it forgot that
      a refspec without colon must set item->dst to NULL to let the users
      of refspec know that the result of the fetch does not get stored in
      an ref on our side.
      
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      c3072c6e
    • Robert P. J. Day's avatar
      p4.txt: Use backquotes for variable names · f156a093
      Robert P. J. Day authored
      
      For consistency, use backquotes when referring to environment
      variables, as is done in other man pages.
      
      Signed-off-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      f156a093
    • Nguyễn Thái Ngọc Duy's avatar
      remote.txt: update documentation for 'update' command · 86f0b372
      Nguyễn Thái Ngọc Duy authored
      
      Commit b344e161 (git remote update: Fallback to remote if group does
      not exist - 2009-04-06) lets "git remote update" accept individual
      remotes as well. Previously this command only accepted remote
      groups. The commit updates the command syntax but not the actual
      document of this subcommand. Update it.
      
      Signed-off-by: default avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      86f0b372
    • Elijah Newren's avatar
      RelNotes: remove duplicate release note · 2161ed80
      Elijah Newren authored
      
      In the 2.18 cycle, directory rename detection was merged, then reverted,
      then reworked in such a way to fix another prominent bug in addition to
      the original problem causing it to be reverted.  When the reworked series
      was merged, we ended up with two nearly duplicate release notes.  Remove
      the second copy, but preserve the information about the extra bug fix.
      
      Signed-off-by: default avatarElijah Newren <newren@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      2161ed80
    • Thomas Gummerer's avatar
      note git-security@googlegroups.com in more places · 2a00502b
      Thomas Gummerer authored
      
      Add a mention of the security mailing list to the README, and to
      Documentation/SubmittingPatches..  2caa7b8d ("git manpage: note
      git-security@googlegroups.com", 2018-03-08) already added it to the
      man page, but for developers either the README, or the documentation
      on how to contribute (SubmittingPatches) may be the first place to
      look.
      
      Use the same wording as we already have on the git-scm.com website and
      in the man page for the README, while the wording is adjusted in
      SubmittingPatches to match the surrounding document better.
      
      Signed-off-by: default avatarThomas Gummerer <t.gummerer@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      2a00502b
    • Thomas Gummerer's avatar
      SubmittingPatches: replace numbered attributes with names · a27cd1ab
      Thomas Gummerer authored
      
      Use names instead of numbers for the AsciiDoc attributes that are used
      for the footnotes.  We will add more footnotes in subsequent commits,
      and attributes should ideally all be unique.  Having named attributes
      will help ensure uniqueness, and we won't have to re-number the
      attributes if we add a footnote earlier in the document.
      
      In addition it also clarifies that the attribute name/number is not
      related to the number the footnote will get in the output.
      
      Signed-off-by: default avatarThomas Gummerer <t.gummerer@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      a27cd1ab
  3. May 30, 2018
    • Junio C Hamano's avatar
    • Junio C Hamano's avatar
      Merge branch 'bw/remote-curl-compressed-responses' · 13e8be95
      Junio C Hamano authored
      Our HTTP client code used to advertise that we accept gzip encoding
      from the other side; instead, just let cURL library to advertise
      and negotiate the best one.
      
      * bw/remote-curl-compressed-responses:
        remote-curl: accept compressed responses with protocol v2
        remote-curl: accept all encodings supported by curl
      13e8be95
    • Junio C Hamano's avatar
      Merge branch 'ma/unpack-trees-free-msgs' · e47dbece
      Junio C Hamano authored
      Leak plugging.
      
      * ma/unpack-trees-free-msgs:
        unpack_trees_options: free messages when done
        argv-array: return the pushed string from argv_push*()
        merge-recursive: provide pair of `unpack_trees_{start,finish}()`
        merge: setup `opts` later in `checkout_fast_forward()`
      e47dbece
    • Junio C Hamano's avatar
      Merge branch 'bc/hash-independent-tests' · 9472b132
      Junio C Hamano authored
      Many tests hardcode the raw object names, which would change once
      we migrate away from SHA-1.  While some of them must test against
      exact object names, most of them do not have to use hardcoded
      constants in the test.  The latter kind of tests have been updated
      to test the moral equivalent of the original without hardcoding the
      actual object names.
      
      * bc/hash-independent-tests: (28 commits)
        t5300: abstract away SHA-1-specific constants
        t4208: abstract away SHA-1-specific constants
        t4045: abstract away SHA-1-specific constants
        t4042: abstract away SHA-1-specific constants
        t4205: sort log output in a hash-independent way
        t/lib-diff-alternative: abstract away SHA-1-specific constants
        t4030: abstract away SHA-1-specific constants
        t4029: abstract away SHA-1-specific constants
        t4029: fix test indentation
        t4022: abstract away SHA-1-specific constants
        t4020: abstract away SHA-1-specific constants
        t4014: abstract away SHA-1-specific constants
        t4008: abstract away SHA-1-specific constants
        t4007: abstract away SHA-1-specific constants
        t3905: abstract away SHA-1-specific constants
        t3702: abstract away SHA-1-specific constants
        t3103: abstract away SHA-1-specific constants
        t2203: abstract away SHA-1-specific constants
        t: skip pack tests if not using SHA-1
        t4044: skip test if not using SHA-1
        ...
      9472b132
    • Junio C Hamano's avatar
      Merge branch 'ma/regex-no-regfree-after-comp-fail' · d89f1248
      Junio C Hamano authored
      We used to call regfree() after regcomp() failed in some codepaths,
      which have been corrected.
      
      * ma/regex-no-regfree-after-comp-fail:
        regex: do not call `regfree()` if compilation fails
      d89f1248
    • Junio C Hamano's avatar
      Merge branch 'ma/config-store-data-clear' · 3f384aaa
      Junio C Hamano authored
      Leak plugging.
      
      * ma/config-store-data-clear:
        config: let `config_store_data_clear()` handle `key`
        config: let `config_store_data_clear()` handle `value_regex`
        config: free resources of `struct config_store_data`
      3f384aaa
    • Junio C Hamano's avatar
      Merge branch 'jk/snprintf-truncation' · 7c3d15fe
      Junio C Hamano authored
      Avoid unchecked snprintf() to make future code auditing easier.
      
      * jk/snprintf-truncation:
        fmt_with_err: add a comment that truncation is OK
        shorten_unambiguous_ref: use xsnprintf
        fsmonitor: use internal argv_array of struct child_process
        log_write_email_headers: use strbufs
        http: use strbufs instead of fixed buffers
      7c3d15fe
    • Junio C Hamano's avatar
      Merge branch 'jk/config-blob-sans-repo' · b2fd6592
      Junio C Hamano authored
      Error codepath fix.
      
      * jk/config-blob-sans-repo:
        config: die when --blob is used outside a repository
      b2fd6592
    • Junio C Hamano's avatar
      Merge branch 'sb/submodule-merge-in-merge-recursive' · 0821b730
      Junio C Hamano authored
      By code restructuring of submodule merge in merge-recursive,
      informational messages from the codepath are now given using the
      same mechanism as other output, and honor the merge.verbosity
      configuration.  The code also learned to give a few new messages
      when a submodule three-way merge resolves cleanly when one side
      records a descendant of the commit chosen by the other side.
      
      * sb/submodule-merge-in-merge-recursive:
        merge-recursive: give notice when submodule commit gets fast-forwarded
        merge-recursive: i18n submodule merge output and respect verbosity
        submodule.c: move submodule merging to merge-recursive.c
      0821b730
    • Junio C Hamano's avatar
      Merge branch 'js/empty-config-section-fix' · 23057708
      Junio C Hamano authored
      Error codepath fix.
      
      * js/empty-config-section-fix:
        config: a user-provided invalid section is not a BUG
      23057708
    • Junio C Hamano's avatar
      Merge branch 'bw/ref-prefix-for-configured-refspec' · e12cbeaa
      Junio C Hamano authored
      "git fetch $there $refspec" that talks over protocol v2 can take
      advantage of server-side ref filtering; the code has been extended
      so that this mechanism triggers also when fetching with configured
      refspec.
      
      * bw/ref-prefix-for-configured-refspec: (38 commits)
        fetch: generate ref-prefixes when using a configured refspec
        refspec: consolidate ref-prefix generation logic
        submodule: convert push_unpushed_submodules to take a struct refspec
        remote: convert check_push_refs to take a struct refspec
        remote: convert match_push_refs to take a struct refspec
        http-push: store refspecs in a struct refspec
        transport: remove transport_verify_remote_names
        send-pack: store refspecs in a struct refspec
        transport: convert transport_push to take a struct refspec
        push: convert to use struct refspec
        push: check for errors earlier
        remote: convert match_explicit_refs to take a struct refspec
        remote: convert get_ref_match to take a struct refspec
        remote: convert query_refspecs to take a struct refspec
        remote: convert apply_refspecs to take a struct refspec
        remote: convert get_stale_heads to take a struct refspec
        fetch: convert prune_refs to take a struct refspec
        fetch: convert get_ref_map to take a struct refspec
        fetch: convert do_fetch to take a struct refspec
        refspec: remove the deprecated functions
        ...
      e12cbeaa
    • Junio C Hamano's avatar
      Merge branch 'sb/grep-die-on-unreadable-index' · 6ac5acae
      Junio C Hamano authored
      Error behaviour of "git grep" when it cannot read the index was
      inconsistent with other commands that uses the index, which has
      been corrected to error out early.
      
      * sb/grep-die-on-unreadable-index:
        grep: handle corrupt index files early
      6ac5acae
Loading