Skip to content
Snippets Groups Projects
  1. Jul 10, 2017
    • Junio C Hamano's avatar
      Merge branch 'ks/prepare-commit-msg-sample' into pu · 42f79c99
      Junio C Hamano authored
      Remove an example that is now obsolete from a sample hook,
      and improve an old example in it that added a sign-off manually
      to use the interpret-trailers command.
      
      * ks/prepare-commit-msg-sample:
        hook: add sign-off using "interpret-trailers"
        hook: name the positional variables
        hook: cleanup script
      42f79c99
    • Junio C Hamano's avatar
      Merge branch 'js/rebase-i-final' into pu · 36292c4e
      Junio C Hamano authored
      The final batch to "git rebase -i" updates to move more code from
      the shell script to C.
      
      * js/rebase-i-final:
        rebase -i: rearrange fixup/squash lines using the rebase--helper
        t3415: test fixup with wrapped oneline
        rebase -i: skip unnecessary picks using the rebase--helper
        rebase -i: check for missing commits in the rebase--helper
        t3404: relax rebase.missingCommitsCheck tests
        rebase -i: also expand/collapse the SHA-1s via the rebase--helper
        rebase -i: do not invent onelines when expanding/collapsing SHA-1s
        rebase -i: remove useless indentation
        rebase -i: generate the script via rebase--helper
        t3415: verify that an empty instructionFormat is handled as before
      36292c4e
    • Junio C Hamano's avatar
      Merge branch 'sb/hashmap-cleanup' into pu · d6447cc1
      Junio C Hamano authored
      Many uses of comparision callback function the hashmap API uses
      cast the callback function type when registering it to
      hashmap_init(), which defeats the compile time type checking when
      the callback interface changes (e.g. gaining more parameters).
      The callback implementations have been updated to take "void *"
      pointers and cast them to the type they expect instead.
      
      * sb/hashmap-cleanup:
        t/helper/test-hashmap: use custom data instead of duplicate cmp functions
        name-hash.c: drop hashmap_cmp_fn cast
        submodule-config.c: drop hashmap_cmp_fn cast
        remote.c: drop hashmap_cmp_fn cast
        patch-ids.c: drop hashmap_cmp_fn cast
        convert/sub-process: drop cast to hashmap_cmp_fn
        config.c: drop hashmap_cmp_fn cast
        builtin/describe: drop hashmap_cmp_fn cast
        builtin/difftool.c: drop hashmap_cmp_fn cast
        attr.c: drop hashmap_cmp_fn cast
      d6447cc1
    • Junio C Hamano's avatar
      Merge branch 'nd/worktree-move' into pu · b2c3002f
      Junio C Hamano authored
      "git worktree" learned move and remove subcommands.
      
      * nd/worktree-move:
        worktree remove: new command
        worktree move: refuse to move worktrees with submodules
        worktree move: accept destination as directory
        worktree move: new command
        worktree.c: add update_worktree_location()
        worktree.c: add validate_worktree()
      b2c3002f
    • Junio C Hamano's avatar
      Merge branch 'mg/status-in-progress-info' into pu · ebe08cc0
      Junio C Hamano authored
      "git status" learns an option to report various operations
      (e.g. "merging") that the user is in the middle of.
      
      cf. <xmqqmvakcdqw.fsf@gitster.mtv.corp.google.com>
      
      * mg/status-in-progress-info:
        status --short --inprogress: spell it as --in-progress
        status: show in-progress info for short status
      ebe08cc0
    • Junio C Hamano's avatar
      Merge branch 'bp/fsmonitor' into pu · 1adc3284
      Junio C Hamano authored
      We learned to talk to watchman to speed up "git status".
      
      * bp/fsmonitor:
        fsmonitor: add a sample query-fsmonitor hook script for Watchman
        fsmonitor: add documentation for the fsmonitor extension.
        fsmonitor: add test cases for fsmonitor extension
        fsmonitor: teach git to optionally utilize a file system monitor to speed up detecting new or changed files.
        dir: make lookup_untracked() available outside of dir.c
        bswap: add 64 bit endianness helper get_be64
      1adc3284
    • Junio C Hamano's avatar
      Merge branch 'rs/progress-overall-throughput-at-the-end' into jch · 2a191429
      Junio C Hamano authored
      The progress meter did not give a useful output when we haven't had
      0.5 seconds to measure the throughput during the interval.  Instead
      show the overall throughput rate at the end, which is a much more
      useful number.
      
      * rs/progress-overall-throughput-at-the-end:
        progress: show overall rate in last update
      2a191429
    • Junio C Hamano's avatar
      Merge branch 'rs/sha1-file-micro-optim' into jch · 02795a99
      Junio C Hamano authored
      Code cleanup.
      
      Perhaps drop.
      cf. <f59c8256-716b-9305-2a4f-d4fe49f666ff@web.de>
      
      * rs/sha1-file-micro-optim:
        SQUASH???
        sha1_file: add slash once in for_each_file_in_obj_subdir()
      02795a99
    • Junio C Hamano's avatar
      Merge branch 'sd/branch-copy' into jch · 5657d27a
      Junio C Hamano authored
      "git branch" learned "-c/-C" to create and switch to a new branch
      by copying an existing one.
      
      Undecided.
      
      I personally do not think "branch --copy master backup" while on
      "master" that switches to "backup" is a good UI, and I *will* say
      "I told you so" when users complain after we merge this down to
      'next' and eventually to 'master'.
      
      * sd/branch-copy:
        branch: add a --copy (-c) option to go with --move (-m)
        branch: add test for -m renaming multiple config sections
        config: create a function to format section headers
      5657d27a
    • Junio C Hamano's avatar
      Merge branch 'jc/allow-lazy-cas' into jch · 5febcb8e
      Junio C Hamano authored
      Because "git push --force-with-lease[=<ref>]" that relies on the
      stability of remote-tracking branches is unsafe when something
      fetches into the repository behind user's back, it is now disabled
      by default.  A new configuration variable can be used to enable it
      by users who know what they are doing.  This would pave the way to
      possibly turn `--force` into `--force-with-lease`.
      
      * jc/allow-lazy-cas:
        push: disable lazy --force-with-lease by default
      5febcb8e
    • Junio C Hamano's avatar
      Merge branch 'bc/object-id' into jch · 4f0816fb
      Junio C Hamano authored
      Conversion from uchar[20] to struct object_id continues.
      
      * bc/object-id:
        sha1_name: convert GET_SHA1* flags to GET_OID*
        sha1_name: convert get_sha1* to get_oid*
        Convert remaining callers of get_sha1 to get_oid.
        builtin/verify-tag: convert to struct object_id
        builtin/unpack-file: convert to struct object_id
        bisect: convert bisect_checkout to struct object_id
        builtin/update_ref: convert to struct object_id
        sequencer: convert to struct object_id
        remote: convert struct push_cas to struct object_id
        submodule: convert submodule config lookup to use object_id
        builtin/merge-tree: convert remaining caller of get_sha1 to object_id
        builtin/fsck: convert remaining caller of get_sha1 to object_id
      4f0816fb
    • Junio C Hamano's avatar
      Merge branch 'sg/clone-refspec-from-command-line-config' into jch · bc8626dd
      Junio C Hamano authored
      "git clone -c var=val" is a way to set configuration variables in
      the resulting repository, but it is more useful to also make these
      variables take effect while the initial clone is happening,
      e.g. these configuration variables could be fetch refspecs.
      
      * sg/clone-refspec-from-command-line-config:
        Documentation/clone: document ignored configuration variables
        clone: respect additional configured fetch refspecs during initial fetch
      bc8626dd
    • Junio C Hamano's avatar
      Merge branch 'tb/push-to-cygwin-unc-path' into jch · 7734252c
      Junio C Hamano authored
      On Cygwin, similar to Windows, "git push //server/share/repository"
      ought to mean a repository on a network share that can be accessed
      locally, but this did not work correctly due to stripping the double
      slashes at the beginning.
      
      This may need to be heavily tested before it gets unleashed to the
      wild, as the change is at a fairly low-level code and would affect
      not just the code to decide if the push destination is local.  There
      may be unexpected fallouts in the path normalization.
      
      * tb/push-to-cygwin-unc-path:
        cygwin: allow pushing to UNC paths
      7734252c
    • Junio C Hamano's avatar
      ### match next · 177a7276
      Junio C Hamano authored
      177a7276
    • Junio C Hamano's avatar
      Merge branch 'jk/build-with-asan' into jch · 553ac9a9
      Junio C Hamano authored
      The build procedure has been improved to allow building and testing
      Git with address sanitizer more easily.
      
      * jk/build-with-asan:
        Makefile: disable unaligned loads with UBSan
        Makefile: turn off -fomit-frame-pointer with sanitizers
        Makefile: add helper for compiling with -fsanitize
        test-lib: turn on ASan abort_on_error by default
        test-lib: set ASAN_OPTIONS variable before we run git
      553ac9a9
    • Junio C Hamano's avatar
      Merge branch 'ks/fix-rebase-doc-picture' into jch · d5083f30
      Junio C Hamano authored
      Doc update.
      
      * ks/fix-rebase-doc-picture:
        doc: correct a mistake in an illustration
      d5083f30
    • Junio C Hamano's avatar
      Merge branch 'rs/wt-status-cleanup' into jch · 657d41d9
      Junio C Hamano authored
      Code cleanup.
      
      * rs/wt-status-cleanup:
        wt-status: use separate variable for result of shorten_unambiguous_ref
      657d41d9
    • Junio C Hamano's avatar
      Merge branch 'kn/ref-filter-branch-list' into jch · f8a52fe3
      Junio C Hamano authored
      The rewrite of "git branch --list" using for-each-ref's internals
      that happened in v2.13 regressed its handling of color.branch.local;
      this has been fixed.
      
      * kn/ref-filter-branch-list:
        ref-filter.c: drop return from void function
        branch: set remote color in ref-filter branch immediately
        branch: use BRANCH_COLOR_LOCAL in ref-filter format
        branch: only perform HEAD check for local branches
      f8a52fe3
    • Junio C Hamano's avatar
      Merge branch 'rs/use-div-round-up' into jch · 39c2a5f2
      Junio C Hamano authored
      Code cleanup.
      
      * rs/use-div-round-up:
        use DIV_ROUND_UP
      39c2a5f2
    • Junio C Hamano's avatar
      Merge branch 'rs/urlmatch-cleanup' into jch · 28bd74f3
      Junio C Hamano authored
      Code cleanup.
      
      * rs/urlmatch-cleanup:
        urlmatch: use hex2chr() in append_normalized_escapes()
      28bd74f3
    • Junio C Hamano's avatar
      Merge branch 'rs/apply-avoid-over-reading' into jch · 54b271fb
      Junio C Hamano authored
      Code cleanup.
      
      * rs/apply-avoid-over-reading:
        apply: use strcmp(3) for comparing strings in gitdiff_verify_name()
      54b271fb
    • Junio C Hamano's avatar
      Merge branch 'jk/reflog-walk' into jch · c932a34a
      Junio C Hamano authored
      Numerous bugs in walking of reflogs via "log -g" and friends have
      been fixed.
      
      * jk/reflog-walk:
        reflog-walk: apply --since/--until to reflog dates
        reflog-walk: stop using fake parents
        rev-list: check reflog_info before showing usage
        get_revision_1(): replace do-while with an early return
        log: do not free parents when walking reflog
        log: clarify comment about reflog cycles
        revision: disallow reflog walking with revs->limited
        t1414: document some reflog-walk oddities
      c932a34a
    • Junio C Hamano's avatar
      Merge branch 'sb/pull-rebase-submodule' into jch · b5f2f825
      Junio C Hamano authored
      "git pull --rebase --recurse-submodules" learns to rebase the
      branch in the submodules to an updated base.
      
      * sb/pull-rebase-submodule:
        builtin/fetch cleanup: always set default value for submodule recursing
        pull: optionally rebase submodules (remote submodule changes only)
        builtin/fetch: parse recurse-submodules-default at default options parsing
        builtin/fetch: factor submodule recurse parsing out to submodule config
      b5f2f825
    • Junio C Hamano's avatar
      Merge branch 'sb/submodule-doc' into jch · e058f950
      Junio C Hamano authored
      Doc update.
      
      * sb/submodule-doc:
        submodules: overhaul documentation
      e058f950
    • Junio C Hamano's avatar
      Merge branch 'sb/diff-color-move' into jch · 79a83415
      Junio C Hamano authored
      "git diff" has been taught to optionally paint new lines that are
      the same as deleted lines elsewhere differently from genuinely new
      lines.
      
      * sb/diff-color-move: (25 commits)
        diff: document the new --color-moved setting
        diff.c: add dimming to moved line detection
        diff.c: color moved lines differently, plain mode
        diff.c: color moved lines differently
        diff.c: buffer all output if asked to
        diff.c: emit_diff_symbol learns about DIFF_SYMBOL_SUMMARY
        diff.c: emit_diff_symbol learns about DIFF_SYMBOL_STAT_SEP
        diff.c: convert word diffing to use emit_diff_symbol
        diff.c: convert show_stats to use emit_diff_symbol
        diff.c: convert emit_binary_diff_body to use emit_diff_symbol
        submodule.c: migrate diff output to use emit_diff_symbol
        diff.c: emit_diff_symbol learns DIFF_SYMBOL_REWRITE_DIFF
        diff.c: emit_diff_symbol learns about DIFF_SYMBOL_BINARY_FILES
        diff.c: emit_diff_symbol learns DIFF_SYMBOL_HEADER
        diff.c: emit_diff_symbol learns DIFF_SYMBOL_FILEPAIR_{PLUS, MINUS}
        diff.c: emit_diff_symbol learns DIFF_SYMBOL_CONTEXT_INCOMPLETE
        diff.c: emit_diff_symbol learns DIFF_SYMBOL_WORDS[_PORCELAIN]
        diff.c: migrate emit_line_checked to use emit_diff_symbol
        diff.c: emit_diff_symbol learns DIFF_SYMBOL_NO_LF_EOF
        diff.c: emit_diff_symbol learns DIFF_SYMBOL_CONTEXT_FRAGINFO
        ...
      79a83415
    • Junio C Hamano's avatar
      Merge branch 'sb/hashmap-customize-comparison' into jch · 2fc65917
      Junio C Hamano authored
      Update the hashmap API so that data to customize the behaviour of
      the comparison function can be specified at the time a hashmap is
      initialized.
      
      * sb/hashmap-customize-comparison:
        hashmap: migrate documentation from Documentation/technical into header
        patch-ids.c: use hashmap correctly
        hashmap.h: compare function has access to a data field
      2fc65917
    • Junio C Hamano's avatar
      Merge branch 'mh/packed-ref-store' into jch · 52203262
      Junio C Hamano authored
      The "ref-store" code reorganization continues.
      
      * mh/packed-ref-store: (30 commits)
        read_packed_refs(): die if `packed-refs` contains bogus data
        t3210: add some tests of bogus packed-refs file contents
        repack_without_refs(): don't lock or unlock the packed refs
        commit_packed_refs(): remove call to `packed_refs_unlock()`
        clear_packed_ref_cache(): don't protest if the lock is held
        packed_refs_unlock(), packed_refs_is_locked(): new functions
        packed_refs_lock(): report errors via a `struct strbuf *err`
        packed_refs_lock(): function renamed from lock_packed_refs()
        commit_packed_refs(): use a staging file separate from the lockfile
        commit_packed_refs(): report errors rather than dying
        packed_ref_store: make class into a subclass of `ref_store`
        packed-backend: new module for handling packed references
        packed_read_raw_ref(): new function, replacing `resolve_packed_ref()`
        packed_ref_store: support iteration
        packed_peel_ref(): new function, extracted from `files_peel_ref()`
        repack_without_refs(): take a `packed_ref_store *` parameter
        get_packed_ref(): take a `packed_ref_store *` parameter
        rollback_packed_refs(): take a `packed_ref_store *` parameter
        commit_packed_refs(): take a `packed_ref_store *` parameter
        lock_packed_refs(): take a `packed_ref_store *` parameter
        ...
      52203262
    • Junio C Hamano's avatar
      Merge branch 'ls/filter-process-delayed' into jch · 6d6c15c5
      Junio C Hamano authored
      The filter-process interface learned to allow a process with long
      latency give a "delayed" response.
      
      * ls/filter-process-delayed:
        convert: add "status=delayed" to filter process protocol
        convert: refactor capabilities negotiation
        convert: move multiple file filter error handling to separate function
        convert: put the flags field before the flag itself for consistent style
        t0021: write "OUT <size>" only on success
        t0021: make debug log file name configurable
        t0021: keep filter log files on comparison
      6d6c15c5
    • Junio C Hamano's avatar
      Merge branch 'ab/grep-lose-opt-regflags' into jch · 2ad4faa1
      Junio C Hamano authored
      Code cleanup.
      
      * ab/grep-lose-opt-regflags:
        grep: remove redundant REG_NEWLINE when compiling fixed regex
        grep: remove regflags from the public grep_opt API
        grep: remove redundant and verbose re-assignments to 0
        grep: remove redundant "fixed" field re-assignment to 0
        grep: adjust a redundant grep pattern type assignment
        grep: remove redundant double assignment to 0
      2ad4faa1
    • Junio C Hamano's avatar
      Merge branch 'ex/deprecate-empty-pathspec-as-match-all' into jch · 0d5389e0
      Junio C Hamano authored
      The final step to make an empty string as a pathspec element
      illegal.  We started this by first deprecating and warning a
      pathspec that has such an element in 2.11 (Nov 2016).
      
      Hopefully we can merge this down to the 'master' by the end of the
      year?  A deprecation warning period that is about 1 year does not
      sound too bad.
      
      * ex/deprecate-empty-pathspec-as-match-all:
        pathspec: die on empty strings as pathspec
        t0027: do not use an empty string as a pathspec element
      0d5389e0
    • René Scharfe's avatar
      use DIV_ROUND_UP · 42c78a21
      René Scharfe authored
      
      Convert code that divides and rounds up to use DIV_ROUND_UP to make the
      intent clearer and reduce the number of magic constants.
      
      Signed-off-by: default avatarRene Scharfe <l.s.r@web.de>
      Reviewed-by: default avatarJeff King <peff@peff.net>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      42c78a21
    • Junio C Hamano's avatar
      Sync with maint · 117ddefd
      Junio C Hamano authored
      117ddefd
    • Junio C Hamano's avatar
      Prepare for 2.13.3 · 699d47e1
      Junio C Hamano authored
      699d47e1
    • Junio C Hamano's avatar
      Merge branch 'sb/merge-recursive-code-cleanup' into maint · 4aaf5b0b
      Junio C Hamano authored
      Code clean-up.
      
      * sb/merge-recursive-code-cleanup:
        merge-recursive: use DIFF_XDL_SET macro
      4aaf5b0b
    • Junio C Hamano's avatar
      Merge branch 'jc/utf8-fprintf' into maint · 127c13aa
      Junio C Hamano authored
      Code cleanup.
      
      * jc/utf8-fprintf:
        submodule--helper: do not call utf8_fprintf() unnecessarily
      127c13aa
    • Junio C Hamano's avatar
      Merge branch 'js/fsck-name-object' into maint · 8e7b78a6
      Junio C Hamano authored
      Test fix.
      
      * js/fsck-name-object:
        t1450: use egrep for regexp "alternation"
      8e7b78a6
    • Junio C Hamano's avatar
      Merge branch 'js/t5534-rev-parse-gives-multi-line-output-fix' into maint · 5a24b4e1
      Junio C Hamano authored
      A few tests that tried to verify the contents of push certificates
      did not use 'git rev-parse' to formulate the line to look for in
      the certificate correctly.
      
      * js/t5534-rev-parse-gives-multi-line-output-fix:
        t5534: fix misleading grep invocation
      5a24b4e1
    • Junio C Hamano's avatar
      Merge branch 'ab/sha1dc-maint' into maint · 362009f8
      Junio C Hamano authored
      Update the sha1dc again to fix portability glitches.
      
      * ab/sha1dc-maint:
        sha1dc: update from upstream
      362009f8
    • Junio C Hamano's avatar
      Merge branch 'aw/contrib-subtree-doc-asciidoctor' into maint · 35049a23
      Junio C Hamano authored
      The Makefile rule in contrib/subtree for building documentation
      learned to honour USE_ASCIIDOCTOR just like the main documentation
      set does.
      
      * aw/contrib-subtree-doc-asciidoctor:
        subtree: honour USE_ASCIIDOCTOR when set
      35049a23
    • Junio C Hamano's avatar
      Merge branch 'cc/shared-index-permfix' into maint · a9e87e32
      Junio C Hamano authored
      The split index code did not honor core.sharedrepository setting
      correctly.
      
      * cc/shared-index-permfix:
        t1700: make sure split-index respects core.sharedrepository
        t1301: move modebits() to test-lib-functions.sh
        read-cache: use shared perms when writing shared index
      a9e87e32
Loading