1. 10 11月, 2012 7 次提交
    • 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
  2. 04 11月, 2012 11 次提交
  3. 29 10月, 2012 12 次提交
    • 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
    • M
      parse_dirstat_params(): use string_list to split comma-separated string · 02e8ca0e
      Michael Haggerty 提交于
      Use string_list_split_in_place() to split the comma-separated
      parameters string.  This simplifies the code and also fixes a bug: the
      old code made calls like
      
          memcmp(p, "lines", p_len)
      
      which needn't work if p_len is different than the length of the
      constant string (and could illegally access memory if p_len is larger
      than the length of the constant string).
      
      When p_len was less than the length of the constant string, the old
      code would have allowed some abbreviations to be accepted (e.g., "cha"
      for "changes") but this seems to have been a bug rather than a
      feature, because (1) it is not documented; (2) no attempt was made to
      handle ambiguous abbreviations, like "c" for "changes" vs
      "cumulative".
      Signed-off-by: NMichael Haggerty <mhagger@alum.mit.edu>
      Signed-off-by: NJeff King <peff@peff.net>
      02e8ca0e
    • P
      Documentation: improve the example of overriding LESS via core.pager · 3a599b83
      Patrick Palka 提交于
      You can override an option set in the LESS variable by simply prefixing
      the command line option with `-+`. This is more robust than the previous
      example if the default LESS options are to ever change.
      Signed-off-by: NPatrick Palka <patrick@parcs.ath.cx>
      Signed-off-by: NJeff King <peff@peff.net>
      3a599b83
    • K
      doc: git-reset: make "<mode>" optional · d505865b
      Krzysztof Mazur 提交于
      The git-reset's "<mode>" is an optional argument, however it was
      documented as required.
      
      The "<mode>" is documented as one of: --soft, --mixed, --hard, --merge
      or --keep, so "<mode>" should be used instead of "--<mode>".
      Signed-off-by: NKrzysztof Mazur <krzysiek@podlesie.net>
      Signed-off-by: NJeff King <peff@peff.net>
      d505865b
  4. 28 10月, 2012 2 次提交
    • T
      Fix t9200 on case insensitive file systems · e342acc6
      Torsten Bögershausen 提交于
      t9200 defines $CVSROOT where cvs should init its repository
      $CVSROOT is set to $PWD/cvsroot.
      cvs init is supposed to create the repository inside $PWD/cvsroot/CVSROOT
      
      "cvs init" (e.g. version  1.11.23) checks if the last element of the path is
      "CVSROOT", and if a directory with e.g. $PWD/cvsroot/CVSROOT already exists.
      
      For such a $CVSROOT cvs refuses to init a repository here:
      "Cannot initialize repository under existing CVSROOT:
      
      On a case insenstive file system cvsroot and CVSROOT are the same directories
      and t9200 fails.
      
      Solution: use $PWD/tmpcvsroot instead of cvsroot $PWD/cvsroot
      Signed-off-by: NTorsten Bögershausen <tboegi@web.de>
      Signed-off-by: NJeff King <peff@peff.net>
      e342acc6
    • R
      mailmap: avoid out-of-bounds memory access · 3174bc5c
      Romain Francoise 提交于
      AddressSanitizer (http://clang.llvm.org/docs/AddressSanitizer.html)
      complains of a one-byte buffer underflow in parse_name_and_email() while
      running the test suite. And indeed, if one of the lines in the mailmap
      begins with '<', we dereference the address just before the beginning of
      the buffer when looking for whitespace to remove, before checking that
      we aren't going too far.
      
      So reverse the order of the tests to make sure that we don't read
      outside the buffer.
      Signed-off-by: NRomain Francoise <romain@orebokech.com>
      Signed-off-by: NJeff King <peff@peff.net>
      3174bc5c
  5. 26 10月, 2012 3 次提交
  6. 25 10月, 2012 5 次提交