1. 04 8月, 2015 16 次提交
    • J
      Merge branch 'mh/init-delete-refs-api' · be9cb560
      Junio C Hamano 提交于
      Clean up refs API and make "git clone" less intimate with the
      implementation detail.
      
      * mh/init-delete-refs-api:
        delete_ref(): use the usual convention for old_sha1
        cmd_update_ref(): make logic more straightforward
        update_ref(): don't read old reference value before delete
        check_branch_commit(): make first parameter const
        refs.h: add some parameter names to function declarations
        refs: move the remaining ref module declarations to refs.h
        initial_ref_transaction_commit(): check for ref D/F conflicts
        initial_ref_transaction_commit(): check for duplicate refs
        refs: remove some functions from the module's public interface
        initial_ref_transaction_commit(): function for initial ref creation
        repack_without_refs(): make function private
        prune_refs(): use delete_refs()
        prune_remote(): use delete_refs()
        delete_refs(): bail early if the packed-refs file cannot be rewritten
        delete_refs(): make error message more generic
        delete_refs(): new function for the refs API
        delete_ref(): handle special case more explicitly
        remove_branches(): remove temporary
        delete_ref(): move declaration to refs.h
      be9cb560
    • J
      Merge branch 'pt/pull-builtin' · 5f02274e
      Junio C Hamano 提交于
      Reimplement 'git pull' in C.
      
      * pt/pull-builtin:
        pull: remove redirection to git-pull.sh
        pull --rebase: error on no merge candidate cases
        pull --rebase: exit early when the working directory is dirty
        pull: configure --rebase via branch.<name>.rebase or pull.rebase
        pull: teach git pull about --rebase
        pull: set reflog message
        pull: implement pulling into an unborn branch
        pull: fast-forward working tree if head is updated
        pull: check if in unresolved merge state
        pull: support pull.ff config
        pull: error on no merge candidates
        pull: pass git-fetch's options to git-fetch
        pull: pass git-merge's options to git-merge
        pull: pass verbosity, --progress flags to fetch and merge
        pull: implement fetch + merge
        pull: implement skeletal builtin pull
        argv-array: implement argv_array_pushv()
        parse-options-cb: implement parse_opt_passthru_argv()
        parse-options-cb: implement parse_opt_passthru()
      5f02274e
    • J
      Merge branch 'jk/pkt-log-pack' · 0b9ce18e
      Junio C Hamano 提交于
      Enhance packet tracing machinery to allow capturing an incoming
      pack data to a file for debugging.
      
      * jk/pkt-log-pack:
        pkt-line: support tracing verbatim pack contents
        pkt-line: tighten sideband PACK check when tracing
        pkt-line: simplify starts_with checks in packet tracing
      0b9ce18e
    • J
      Merge branch 'mr/rebase-i-customize-insn-sheet' · 9f56db7c
      Junio C Hamano 提交于
      "git rebase -i"'s list of todo is made configurable.
      
      * mr/rebase-i-customize-insn-sheet:
        git-rebase--interactive.sh: add config option for custom instruction format
      9f56db7c
    • J
      Merge branch 'rl/send-email-aliases' · 8f50e2ee
      Junio C Hamano 提交于
      "git send-email" now performs alias-expansion on names that are
      given via --cccmd, etc.
      
      This round comes with a lot more enhanced e-mail address parser,
      which makes it a bit scary, but as long as it works as designed, it
      makes it wonderful ;-).
      
      * rl/send-email-aliases:
        send-email: suppress meaningless whitespaces in from field
        send-email: allow multiple emails using --cc, --to and --bcc
        send-email: consider quote as delimiter instead of character
        send-email: reduce dependencies impact on parse_address_line
        send-email: minor code refactoring
        send-email: allow use of aliases in the From field of --compose mode
        send-email: refactor address list process
        t9001-send-email: refactor header variable fields replacement
        send-email: allow aliases in patch header and command script outputs
        t9001-send-email: move script creation in a setup test
      8f50e2ee
    • J
      Merge branch 'kb/i18n-doc' · 81bc521a
      Junio C Hamano 提交于
      * kb/i18n-doc:
        Documentation/i18n.txt: clarify character encoding support
      81bc521a
    • J
      Merge branch 'nd/export-worktree' · a3f4eb1b
      Junio C Hamano 提交于
      Running an aliased command from a subdirectory when the .git thing
      in the working tree is a gitfile pointing elsewhere did not work.
      
      * nd/export-worktree:
        setup: set env $GIT_WORK_TREE when work tree is set, like $GIT_DIR
      a3f4eb1b
    • J
      Merge branch 'ee/clean-remove-dirs' · 54d673f2
      Junio C Hamano 提交于
      Replace "is this subdirectory a separate repository that should not
      be touched?" check "git clean" does by checking if it has .git/HEAD
      using the submodule-related code with a more optimized check.
      
      * ee/clean-remove-dirs:
        read_gitfile_gently: fix use-after-free
        clean: improve performance when removing lots of directories
        p7300: add performance tests for clean
        t7300: add tests to document behavior of clean and nested git
        setup: sanity check file size in read_gitfile_gently
        setup: add gentle version of read_gitfile
      54d673f2
    • J
      Merge branch 'cb/parse-magnitude' · e12b51e4
      Junio C Hamano 提交于
      Move machinery to parse human-readable scaled numbers like 1k, 4M,
      and 2G as an option parameter's value from pack-objects to
      parse-options API, to make it available to other codepaths.
      
      * cb/parse-magnitude:
        parse-options: move unsigned long option parsing out of pack-objects.c
        test-parse-options: update to handle negative ints
      e12b51e4
    • J
      Merge branch 'bc/gpg-verify-raw' · ba12cb29
      Junio C Hamano 提交于
      "git verify-tag" and "git verify-commit" have been taught to share
      more code, and then learned to optionally show the verification
      message from the underlying GPG implementation.
      
      * bc/gpg-verify-raw:
        verify-tag: add option to print raw gpg status information
        verify-commit: add option to print raw gpg status information
        gpg: centralize printing signature buffers
        gpg: centralize signature check
        verify-commit: add test for exit status on untrusted signature
        verify-tag: share code with verify-commit
        verify-tag: add tests
      ba12cb29
    • J
      Merge branch 'pt/am-foreign' · e7cf4b25
      Junio C Hamano 提交于
      Various enhancements around "git am" reading patches generated by
      foreign SCM.
      
      * pt/am-foreign:
        am: teach mercurial patch parser how to read from stdin
        am: use gmtime() to parse mercurial patch date
        t4150: test applying StGit series
        am: teach StGit patch parser how to read from stdin
        t4150: test applying StGit patch
      e7cf4b25
    • J
      Merge branch 'kn/for-each-ref' · 7ebc8cbe
      Junio C Hamano 提交于
      GSoC project to rebuild ref listing by branch and tag based on the
      for-each-ref machinery.  This is its first part.
      
      * kn/for-each-ref:
        ref-filter: make 'ref_array_item' use a FLEX_ARRAY for refname
        for-each-ref: introduce filter_refs()
        ref-filter: move code from 'for-each-ref'
        ref-filter: add 'ref-filter.h'
        for-each-ref: rename variables called sort to sorting
        for-each-ref: rename some functions and make them public
        for-each-ref: introduce 'ref_array_clear()'
        for-each-ref: introduce new structures for better organisation
        for-each-ref: rename 'refinfo' to 'ref_array_item'
        for-each-ref: clean up code
        for-each-ref: extract helper functions out of grab_single_ref()
      7ebc8cbe
    • J
      Merge branch 'mh/replace-refs' · 31a0ad54
      Junio C Hamano 提交于
      Add an environment variable to tell Git to look into refs hierarchy
      other than refs/replace/ for the object replacement data.
      
      * mh/replace-refs:
        Allow to control where the replace refs are looked for
      31a0ad54
    • K
      ref-filter: make 'ref_array_item' use a FLEX_ARRAY for refname · 1958a6eb
      Karthik Nayak 提交于
      This would remove the need of using a pointer to store refname.
      Mentored-by: NChristian Couder <christian.couder@gmail.com>
      Mentored-by: NMatthieu Moy <matthieu.moy@grenoble-inp.fr>
      Signed-off-by: NKarthik Nayak <karthik.188@gmail.com>
      Reviewed-by: NMatthieu Moy <Matthieu.Moy@imag.fr>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1958a6eb
    • K
      for-each-ref: introduce filter_refs() · 14de7fba
      Karthik Nayak 提交于
      Introduce filter_refs() which will act as an API for filtering
      a set of refs. Based on the type of refs the user has requested,
      we iterate through those refs and apply filters as per the
      given ref_filter structure and finally store the filtered refs
      in the ref_array structure.
      
      Currently this will wrap around ref_filter_handler(). Hence,
      ref_filter_handler is made file scope static.
      
      As users of this API will no longer send a ref_filter_cbdata
      structure directly, we make the elements of ref_filter_cbdata
      pointers. We can now use the information given by the users
      to obtain our own ref_filter_cbdata structure. Changes are made to
      support the change in ref_filter_cbdata structure.
      
      Make 'for-each-ref' use this API.
      Helped-by: NJunio C Hamano <gitster@pobox.com>
      Mentored-by: NChristian Couder <christian.couder@gmail.com>
      Mentored-by: NMatthieu Moy <matthieu.moy@grenoble-inp.fr>
      Signed-off-by: NKarthik Nayak <karthik.188@gmail.com>
      Reviewed-by: NMatthieu Moy <Matthieu.Moy@imag.fr>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      14de7fba
    • K
      ref-filter: move code from 'for-each-ref' · c95b7585
      Karthik Nayak 提交于
      Move most of the code from 'for-each-ref' to 'ref-filter' to make
      it publicly available to other commands, this is to unify the code
      of 'tag -l', 'branch -l' and 'for-each-ref' so that they can share
      their implementations with each other.
      
      Add 'ref-filter' to the Makefile, this completes the movement of code
      from 'for-each-ref' to 'ref-filter'.
      Mentored-by: NChristian Couder <christian.couder@gmail.com>
      Mentored-by: NMatthieu Moy <matthieu.moy@grenoble-inp.fr>
      Signed-off-by: NKarthik Nayak <karthik.188@gmail.com>
      Reviewed-by: NMatthieu Moy <Matthieu.Moy@imag.fr>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c95b7585
  2. 28 7月, 2015 17 次提交
  3. 25 7月, 2015 2 次提交
  4. 22 7月, 2015 3 次提交
  5. 21 7月, 2015 1 次提交
  6. 18 7月, 2015 1 次提交