1. 28 2月, 2017 9 次提交
    • J
      Merge branch 'lt/pathspec-negative' · 015fba38
      Junio C Hamano 提交于
      The "negative" pathspec feature was somewhat more cumbersome to use
      than necessary in that its short-hand used "!" which needed to be
      escaped from shells, and it required "exclude from what?" specified.
      
      * lt/pathspec-negative:
        pathspec: don't error out on all-exclusionary pathspec patterns
        pathspec magic: add '^' as alias for '!'
      015fba38
    • J
      Merge branch 'cw/tag-reflog-message' · fb75e317
      Junio C Hamano 提交于
      "git tag" did not leave useful message when adding a new entry to
      reflog; this was left unnoticed for a long time because refs/tags/*
      doesn't keep reflog by default.
      
      * cw/tag-reflog-message:
        tag: generate useful reflog message
      fb75e317
    • J
      Merge branch 'jk/alternate-ref-optim' · b9c2919f
      Junio C Hamano 提交于
      Optimizes resource usage while enumerating refs from alternate
      object store, to help receiving end of "push" that hosts a
      repository with many "forks".
      
      * jk/alternate-ref-optim:
        receive-pack: avoid duplicates between our refs and alternates
        receive-pack: treat namespace .have lines like alternates
        receive-pack: fix misleading namespace/.have comment
        receive-pack: use oidset to de-duplicate .have lines
        add oidset API
        fetch-pack: cache results of for_each_alternate_ref
        for_each_alternate_ref: replace transport code with for-each-ref
        for_each_alternate_ref: pass name/oid instead of ref struct
        for_each_alternate_ref: use strbuf for path allocation
        for_each_alternate_ref: stop trimming trailing slashes
        for_each_alternate_ref: handle failure from real_pathdup()
      b9c2919f
    • J
      Merge branch 'kn/ref-filter-branch-list' · 93e8cd8b
      Junio C Hamano 提交于
      The code to list branches in "git branch" has been consolidated
      with the more generic ref-filter API.
      
      * kn/ref-filter-branch-list: (21 commits)
        ref-filter: resurrect "strip" as a synonym to "lstrip"
        branch: implement '--format' option
        branch: use ref-filter printing APIs
        branch, tag: use porcelain output
        ref-filter: allow porcelain to translate messages in the output
        ref-filter: add an 'rstrip=<N>' option to atoms which deal with refnames
        ref-filter: modify the 'lstrip=<N>' option to work with negative '<N>'
        ref-filter: Do not abruptly die when using the 'lstrip=<N>' option
        ref-filter: rename the 'strip' option to 'lstrip'
        ref-filter: make remote_ref_atom_parser() use refname_atom_parser_internal()
        ref-filter: introduce refname_atom_parser()
        ref-filter: introduce refname_atom_parser_internal()
        ref-filter: make "%(symref)" atom work with the ':short' modifier
        ref-filter: add support for %(upstream:track,nobracket)
        ref-filter: make %(upstream:track) prints "[gone]" for invalid upstreams
        ref-filter: introduce format_ref_array_item()
        ref-filter: move get_head_description() from branch.c
        ref-filter: modify "%(objectname:short)" to take length
        ref-filter: implement %(if:equals=<string>) and %(if:notequals=<string>)
        ref-filter: include reference to 'used_atom' within 'atom_value'
        ...
      93e8cd8b
    • J
      Merge branch 'ps/urlmatch-wildcard' · a4117269
      Junio C Hamano 提交于
      The <url> part in "http.<url>.<variable>" configuration variable
      can now be spelled with '*' that serves as wildcard.
      E.g. "http.https://*.example.com.proxy" can be used to specify the
      proxy used for https://a.example.com, https://b.example.com, etc.,
      i.e. any host in the example.com domain.
      
      * ps/urlmatch-wildcard:
        urlmatch: allow globbing for the URL host part
        urlmatch: include host in urlmatch ranking
        urlmatch: split host and port fields in `struct url_info`
        urlmatch: enable normalization of URLs with globs
        mailmap: add Patrick Steinhardt's work address
      a4117269
    • J
      Merge branch 'mm/merge-rename-delete-message' · 74aabf41
      Junio C Hamano 提交于
      When "git merge" detects a path that is renamed in one history
      while the other history deleted (or modified) it, it now reports
      both paths to help the user understand what is going on in the two
      histories being merged.
      
      * mm/merge-rename-delete-message:
        merge-recursive: make "CONFLICT (rename/delete)" message show both paths
      74aabf41
    • J
      Merge branch 'mh/ref-remove-empty-directory' · 3ad8b5bf
      Junio C Hamano 提交于
      Deletion of a branch "foo/bar" could remove .git/refs/heads/foo
      once there no longer is any other branch whose name begins with
      "foo/", but we didn't do so so far.  Now we do.
      
      * mh/ref-remove-empty-directory: (23 commits)
        files_transaction_commit(): clean up empty directories
        try_remove_empty_parents(): teach to remove parents of reflogs, too
        try_remove_empty_parents(): don't trash argument contents
        try_remove_empty_parents(): rename parameter "name" -> "refname"
        delete_ref_loose(): inline function
        delete_ref_loose(): derive loose reference path from lock
        log_ref_write_1(): inline function
        log_ref_setup(): manage the name of the reflog file internally
        log_ref_write_1(): don't depend on logfile argument
        log_ref_setup(): pass the open file descriptor back to the caller
        log_ref_setup(): improve robustness against races
        log_ref_setup(): separate code for create vs non-create
        log_ref_write(): inline function
        rename_tmp_log(): improve error reporting
        rename_tmp_log(): use raceproof_create_file()
        lock_ref_sha1_basic(): use raceproof_create_file()
        lock_ref_sha1_basic(): inline constant
        raceproof_create_file(): new function
        safe_create_leading_directories(): set errno on SCLD_EXISTS
        safe_create_leading_directories_const(): preserve errno
        ...
      3ad8b5bf
    • J
      Merge branch 'jk/delta-chain-limit' · 538569bc
      Junio C Hamano 提交于
      "git repack --depth=<n>" for a long time busted the specified depth
      when reusing delta from existing packs.  This has been corrected.
      
      * jk/delta-chain-limit:
        pack-objects: convert recursion to iteration in break_delta_chain()
        pack-objects: enforce --depth limit in reused deltas
      538569bc
    • J
      Merge branch 'jk/describe-omit-some-refs' · 1b324988
      Junio C Hamano 提交于
      "git describe" and "git name-rev" have been taught to take more
      than one refname patterns to restrict the set of refs to base their
      naming output on, and also learned to take negative patterns to
      name refs not to be used for naming via their "--exclude" option.
      
      * jk/describe-omit-some-refs:
        describe: teach describe negative pattern matches
        describe: teach --match to accept multiple patterns
        name-rev: add support to exclude refs by pattern match
        name-rev: extend --refs to accept multiple patterns
        doc: add documentation for OPT_STRING_LIST
      1b324988
  2. 25 2月, 2017 11 次提交
  3. 24 2月, 2017 1 次提交
  4. 23 2月, 2017 3 次提交
  5. 22 2月, 2017 2 次提交
  6. 21 2月, 2017 3 次提交
  7. 19 2月, 2017 3 次提交
  8. 18 2月, 2017 8 次提交