1. 02 12月, 2012 4 次提交
  2. 10 11月, 2012 11 次提交
    • J
      Merge branch 'ph/maint-submodule-status-fix' · b0b00a3e
      Jeff King 提交于
      Cleans up some leftover bits from an earlier submodule change.
      
      * ph/maint-submodule-status-fix:
        submodule status: remove unused orig_* variables
        t7407: Fix recursive submodule test
      b0b00a3e
    • J
      Merge branch 'nd/builtin-to-libgit' · 19fb6136
      Jeff King 提交于
      Code cleanups so that libgit.a does not depend on anything in the
      builtin/ directory.
      
      * nd/builtin-to-libgit:
        fetch-pack: move core code to libgit.a
        fetch-pack: remove global (static) configuration variable "args"
        send-pack: move core code to libgit.a
        Move setup_diff_pager to libgit.a
        Move print_commit_list to libgit.a
        Move estimate_bisect_steps to libgit.a
        Move try_merge_command and checkout_fast_forward to libgit.a
      19fb6136
    • J
      Merge branch 'nd/tree-walk-enum-cleanup' · 9d91c0e3
      Jeff King 提交于
      * nd/tree-walk-enum-cleanup:
        tree-walk: use enum interesting instead of integer
      9d91c0e3
    • J
      Merge branch 'sz/maint-curl-multi-timeout' · 23a50a1f
      Jeff King 提交于
      Sometimes curl_multi_timeout() function suggested a wrong timeout
      value when there is no file descriptors to wait on and the http
      transport ended up sleeping for minutes in select(2) system call.
      Detect this and reduce the wait timeout in such a case.
      
      * sz/maint-curl-multi-timeout:
        Fix potential hang in https handshake
      23a50a1f
    • J
      Merge branch 'fc/completion-send-email-with-format-patch' · d9253f2b
      Jeff King 提交于
      * fc/completion-send-email-with-format-patch:
        completion: add format-patch options to send-email
      d9253f2b
    • J
      Merge branch 'mo/cvs-server-cleanup' · 3aedff6b
      Jeff King 提交于
      Cleanups to prepare for mo/cvs-server-updates.
      
      * mo/cvs-server-cleanup:
        Use character class for sed expression instead of \s
        cvsserver status: provide real sticky info
        cvsserver: cvs add: do not expand directory arguments
        cvsserver: use whole CVS rev number in-process; don't strip "1." prefix
        cvsserver: split up long lines in req_{status,diff,log}
        cvsserver: clean up client request handler map comments
        cvsserver: remove unused functions _headrev and gethistory
        cvsserver update: comment about how we shouldn't remove a user-modified file
        cvsserver: add comments about database schema/usage
        cvsserver: removed unused sha1Or-k mode from kopts_from_path
        cvsserver t9400: add basic 'cvs log' test
      3aedff6b
    • J
      Merge branch 'km/send-email-compose-encoding' · 05eda511
      Jeff King 提交于
      "git send-email --compose" can let the user create a non-ascii
      cover letter message, but there was not a way to mark it with
      appropriate content type before sending it out.
      
      Further updates fix subject quoting.
      
      * km/send-email-compose-encoding:
        git-send-email: add rfc2047 quoting for "=?"
        git-send-email: introduce quote_subject()
        git-send-email: skip RFC2047 quoting for ASCII subjects
        git-send-email: use compose-encoding for Subject
        git-send-email: introduce compose-encoding
      05eda511
    • J
      Merge branch 'js/format-2047' · 64b22a58
      Jeff King 提交于
      Fixes many rfc2047 quoting issues in the output from format-patch.
      
      * js/format-2047:
        format-patch tests: check quoting/encoding in To: and Cc: headers
        format-patch: fix rfc2047 address encoding with respect to rfc822 specials
        format-patch: make rfc2047 encoding more strict
        format-patch: introduce helper function last_line_length()
        format-patch: do not wrap rfc2047 encoded headers too late
        format-patch: do not wrap non-rfc2047 headers too early
        utf8: fix off-by-one wrapping of text
      64b22a58
    • J
      Merge branch 'rs/lock-correct-ref-during-delete' · 15ba878a
      Jeff King 提交于
      When "update-ref -d --no-deref SYM" tried to delete a symbolic ref
      SYM, it incorrectly locked the underlying reference pointed by SYM,
      not the symbolic ref itself.
      
      * rs/lock-correct-ref-during-delete:
        refs: lock symref that is to be deleted, not its target
      15ba878a
    • J
      Merge branch 'nd/attr-match-optim-more' · 5f836422
      Jeff King 提交于
      Start laying the foundation to build the "wildmatch" after we can
      agree on its desired semantics.
      
      * nd/attr-match-optim-more:
        attr: more matching optimizations from .gitignore
        gitignore: make pattern parsing code a separate function
        exclude: split pathname matching code into a separate function
        exclude: fix a bug in prefix compare optimization
        exclude: split basename matching code into a separate function
        exclude: stricten a length check in EXC_FLAG_ENDSWITH case
      5f836422
    • J
      Merge branch 'mh/maint-parse-dirstat-fix' · 8736c901
      Jeff King 提交于
      Cleans up some code and avoids a potential bug.
      
      * mh/maint-parse-dirstat-fix:
        parse_dirstat_params(): use string_list to split comma-separated string
      8736c901
  3. 04 11月, 2012 11 次提交
  4. 29 10月, 2012 14 次提交
    • T
      Add -S, --gpg-sign option to manpage of "git commit" · 098bbdc3
      Tom Jones 提交于
      git commit -S, --gpg-sign was mentioned in the program's help message,
      but not in the manpage.
      
      This adds an equivalent entry for the option in the manpage.
      Signed-off-by: NTom Jones <tom@oxix.org>
      Signed-off-by: NJeff King <peff@peff.net>
      098bbdc3
    • J
      Merge branch 'rs/branch-del-symref' · 9c503744
      Jeff King 提交于
      A symbolic ref refs/heads/SYM was not correctly removed with
      "git branch -d SYM"; the command removed the ref pointed by
      SYM instead.
      
      * rs/branch-del-symref:
        branch: show targets of deleted symrefs, not sha1s
        branch: skip commit checks when deleting symref branches
        branch: delete symref branch, not its target
        branch: factor out delete_branch_config()
        branch: factor out check_branch_commit()
      9c503744
    • J
      Merge branch 'nd/status-long' · eeb2535f
      Jeff King 提交于
      Allow an earlier "--short" option on the command line to be
      countermanded with the "--long" option for "git status" and "git
      commit".
      
      * nd/status-long:
        status: add --long output format option
      eeb2535f
    • J
      Merge branch 'jk/sh-setup-in-filter-branch' · deb24581
      Jeff King 提交于
      Refactoring to avoid code duplication in shell scripts.
      
      * jk/sh-setup-in-filter-branch:
        filter-branch: use git-sh-setup's ident parsing functions
        git-sh-setup: refactor ident-parsing functions
      deb24581
    • J
      Merge branch 'nd/grep-true-path' · e034d1bb
      Jeff King 提交于
      "git grep -e pattern <tree>" asked the attribute system to read
      "<tree>:.gitattributes" file in the working tree, which was
      nonsense.
      
      * nd/grep-true-path:
        grep: stop looking at random places for .gitattributes
      e034d1bb
    • J
      Merge branch 'jk/maint-http-init-not-in-result-handler' · 58f3f989
      Jeff King 提交于
      Further clean-up to the http codepath that picks up results after
      cURL library is done with one request slot.
      
      * jk/maint-http-init-not-in-result-handler:
        http: do not set up curl auth after a 401
        remote-curl: do not call run_slot repeatedly
      58f3f989
    • J
      Merge branch 'jc/grep-pcre-loose-ends' · d2f4469b
      Jeff King 提交于
      "git log -F -E --grep='<ere>'" failed to use the given <ere>
      pattern as extended regular expression, and instead looked for the
      string literally.  The early part of this series is a fix for it;
      the latter part teaches log to respect the grep.* configuration.
      
      * jc/grep-pcre-loose-ends:
        log: honor grep.* configuration
        log --grep: accept --basic-regexp and --perl-regexp
        log --grep: use the same helper to set -E/-F options as "git grep"
        revisions: initialize revs->grep_filter using grep_init()
        grep: move pattern-type bits support to top-level grep.[ch]
        grep: move the configuration parsing logic to grep.[ch]
        builtin/grep.c: make configuration callback more reusable
      d2f4469b
    • J
      Merge branch 'jl/submodule-add-by-name' · fdb4d271
      Jeff King 提交于
      If you remove a submodule, in order to keep the repository so that
      "git checkout" to an older commit in the superproject history can
      resurrect the submodule, the real repository will stay in $GIT_DIR
      of the superproject.  A later "git submodule add $path" to add a
      different submodule at the same path will fail.  Diagnose this case
      a bit better, and if the user really wants to add an unrelated
      submodule at the same path, give the "--name" option to give it a
      place in $GIT_DIR of the superproject that does not conflict with
      the original submodule.
      
      * jl/submodule-add-by-name:
        submodule add: Fail when .git/modules/<name> already exists unless forced
        Teach "git submodule add" the --name option
      fdb4d271
    • J
      Merge branch 'jl/submodule-rm' · d21240fa
      Jeff King 提交于
      "git rm submodule" cannot blindly remove a submodule directory as
      its working tree may have local changes, and worse yet, it may even
      have its repository embedded in it.  Teach it some special cases
      where it is safe to remove a submodule, specifically, when there is
      no local changes in the submodule working tree, and its repository
      is not embedded in its working tree but is elsewhere and uses the
      gitfile mechanism to point at it.
      
      * jl/submodule-rm:
        submodule: teach rm to remove submodules unless they contain a git directory
      d21240fa
    • N
      fetch-pack: move core code to libgit.a · 745f7a8c
      Nguyễn Thái Ngọc Duy 提交于
      fetch_pack() is used by transport.c, part of libgit.a while it stays
      in builtin/fetch-pack.c. Move it to fetch-pack.c so that we won't get
      undefined reference if a program that uses libgit.a happens to pull it
      in.
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      745f7a8c
    • J
      submodule status: remove unused orig_* variables · e15bec0e
      Jens Lehmann 提交于
      When renaming orig_args to orig_flags in 98dbe63d (submodule: only
      preserve flags across recursive status/update invocations) the call site
      of the recursive cmd_status was forgotten. At that place orig_args is
      still passed into the recursion, which is always empty since then. This
      did not break anything because the orig_flags logic is not needed at all
      when a function from the submodule script is called with eval, as that
      inherits all the variables set by the option parsing done in the first
      level of the recursion.
      
      Now that we know that orig_flags and orig_args aren't needed at all,
      let's just remove them from cmd_status().
      
      Thanks-to: Phil Hord <hordp@cisco.com>
      Signed-off-by: NJens Lehmann <Jens.Lehmann@web.de>
      Signed-off-by: NJeff King <peff@peff.net>
      e15bec0e
    • P
      t7407: Fix recursive submodule test · 58ca9ad4
      Phil Hord 提交于
      A test in t7404-submodule-foreach purports to test that
      the --cached flag is properly noticed by --recursive calls
      to the foreach command as it descends into nested
      submodules.  However, the test really does not perform this
      test since the change it looks for is in a top-level
      submodule handled by the first invocation of the command.
      To properly test for the flag being passed to recursive
      invocations, the change must be buried deeper in the
      hierarchy.
      
      Move the change one level deeper so it properly verifies
      the recursive machinery of the 'git submodule status'
      command.
      Signed-off-by: NPhil Hord <hordp@cisco.com>
      Signed-off-by: NJeff King <peff@peff.net>
      58ca9ad4
    • N
      fetch-pack: remove global (static) configuration variable "args" · f8eb3036
      Nguyễn Thái Ngọc Duy 提交于
      This helps removes the hack in fetch_pack() that copies my_args to args.
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      f8eb3036
    • N
      send-pack: move core code to libgit.a · f5d942e1
      Nguyễn Thái Ngọc Duy 提交于
      send_pack() is used by transport.c, part of libgit.a while it stays in
      builtin/send-pack.c. Move it to send-pack.c so that we won't get
      undefined reference if a program that uses libgit.a happens to pull it
      in.
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      f5d942e1