1. 19 9月, 2020 2 次提交
  2. 17 9月, 2020 3 次提交
    • A
      ref-filter: allow merged and no-merged filters · 21bf9339
      Aaron Lipman 提交于
      Enable ref-filter to process multiple merged and no-merged filters, and
      extend functionality to git branch, git tag and git for-each-ref. This
      provides an easy way to check for branches that are "graduation
      candidates:"
      
      $ git branch --no-merged master --merged next
      
      If passed more than one merged (or more than one no-merged) filter, refs
      must be reachable from any one of the merged commits, and reachable from
      none of the no-merged commits.
      Signed-off-by: NAaron Lipman <alipman88@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      21bf9339
    • A
      Doc: cover multiple contains/no-contains filters · 415af72b
      Aaron Lipman 提交于
      Update documentation for "git branch", "git for-each-ref" and "git tag"
      with notes explaining what happens when passed multiple --contains or
      --no-contains filters.
      
      This behavior is useful to document prior to enabling multiple
      merged/no-merged filters, in order to demonstrate consistent behavior
      between merged/no-merged and contains/no-contains filters.
      Signed-off-by: NAaron Lipman <alipman88@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      415af72b
    • A
      t3201: test multiple branch filter combinations · b775d812
      Aaron Lipman 提交于
      Add tests covering the behavior of passing multiple contains/no-contains
      filters to git branch, e.g.:
      
      $ git branch --contains feature_a --contains feature_b
      $ git branch --no-contains feature_a --no-contains feature_b
      
      When passed more than one contains (or no-contains) filter, the tips of
      the branches returned must be reachable from any of the contains commits
      and from none of the the no-contains commits.
      
      This logic is useful to describe prior to enabling multiple
      merged/no-merged filters, so that future tests will demonstrate
      consistent behavior between merged/no-merged and contains/no-contains
      filters.
      Signed-off-by: NAaron Lipman <alipman88@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b775d812
  3. 10 9月, 2020 12 次提交
    • J
      Fourteenth batch · 54e85e7a
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      54e85e7a
    • J
      Merge branch 'os/vcbuild' · ff75e6c9
      Junio C Hamano 提交于
      Fix build procedure for MSVC.
      
      * os/vcbuild:
        contrib/buildsystems: fix expat library name for generated vcxproj
        vcbuild: fix batch file name in README
        vcbuild: fix library name for expat with make MSVC=1
      ff75e6c9
    • J
      Merge branch 'jt/interpret-branch-name-fallback' · 0df670bc
      Junio C Hamano 提交于
      "git status" has trouble showing where it came from by interpreting
      reflog entries that recordcertain events, e.g. "checkout @{u}", and
      gives a hard/fatal error.  Even though it inherently is impossible
      to give a correct answer because the reflog entries lose some
      information (e.g. "@{u}" does not record what branch the user was
      on hence which branch 'the upstream' needs to be computed, and even
      if the record were available, the relationship between branches may
      have changed), at least hide the error to allow "status" show its
      output.
      
      * jt/interpret-branch-name-fallback:
        wt-status: tolerate dangling marks
        refs: move dwim_ref() to header file
        sha1-name: replace unsigned int with option struct
      0df670bc
    • J
      Merge branch 'js/ci-squelch-false-failure' · 7364aee1
      Junio C Hamano 提交于
      CI noise reduction.
      
      * js/ci-squelch-false-failure:
        ci: avoid ugly "failure" in the `ci-config` job
        ci: fix indentation of the `ci-config` job
      7364aee1
    • J
      Merge branch 'pb/imap-send-updates' · 6e5f930f
      Junio C Hamano 提交于
      "git imap-send" updates.
      
      * pb/imap-send-updates:
        git-imap-send.txt: add note about localized Gmail folders
        git-imap-send.txt: do verify SSL certificate for gmail.com
        git-imap-send.txt: don't duplicate 'Examples' sections
      6e5f930f
    • J
      Merge branch 'hv/ref-filter-misc' · c25fba98
      Junio C Hamano 提交于
      The "--format=" option to the "for-each-ref" command and friends
      learned a few more tricks, e.g. the ":short" suffix that applies to
      "objectname" now also can be used for "parent", "tree", etc.
      
      * hv/ref-filter-misc:
        ref-filter: add `sanitize` option for 'subject' atom
        pretty: refactor `format_sanitized_subject()`
        ref-filter: add `short` modifier to 'parent' atom
        ref-filter: add `short` modifier to 'tree' atom
        ref-filter: rename `objectname` related functions and fields
        ref-filter: modify error messages in `grab_objectname()`
        ref-filter: refactor `grab_objectname()`
        ref-filter: support different email formats
      c25fba98
    • J
      Merge branch 'ss/submodule-summary-in-c-fixes' · 9f7833fd
      Junio C Hamano 提交于
      Fixups to a topic in 'next'.
      
      * ss/submodule-summary-in-c-fixes:
        t7421: eliminate 'grep' check in t7421.4 for mingw compatibility
        submodule: fix style in function definition
        submodule: eliminate unused parameters from print_submodule_summary()
      9f7833fd
    • J
      Merge branch 'so/separate-field-for-m-and-diff-merges' · c1ce30d3
      Junio C Hamano 提交于
      Internal API clean-up to handle two options "diff-index" and "log"
      have, which happen to share the same short form, more sensibly.
      
      * so/separate-field-for-m-and-diff-merges:
        revision: add separate field for "-m" of "diff-index -m"
      c1ce30d3
    • J
      Merge branch 'es/worktree-repair' · eb7460fd
      Junio C Hamano 提交于
      "git worktree" gained a "repair" subcommand to help users recover
      after moving the worktrees or repository manually without telling
      Git.  Also, "git init --separate-git-dir" no longer corrupts
      administrative data related to linked worktrees.
      
      * es/worktree-repair:
        init: make --separate-git-dir work from within linked worktree
        init: teach --separate-git-dir to repair linked worktrees
        worktree: teach "repair" to fix outgoing links to worktrees
        worktree: teach "repair" to fix worktree back-links to main worktree
        worktree: add skeleton "repair" command
      eb7460fd
    • J
      Merge branch 'jk/worktree-check-clean-leakfix' · 1aadb47a
      Junio C Hamano 提交于
      Leakfix.
      
      * jk/worktree-check-clean-leakfix:
        worktree: fix leak in check_clean_worktree()
      1aadb47a
    • J
      Merge branch 'tb/repack-clearing-midx' · a31677dd
      Junio C Hamano 提交于
      When a packfile is removed by "git repack", multi-pack-index gets
      cleared; the code was taught to do so less aggressively by first
      checking if the midx actually refers to a pack that no longer
      exists.
      
      * tb/repack-clearing-midx:
        midx: traverse the local MIDX first
        builtin/repack.c: invalidate MIDX only when necessary
      a31677dd
    • J
      Merge branch 'ss/submodule-summary-in-c' · bbdba3d8
      Junio C Hamano 提交于
      Yet another subcommand of "git submodule" is getting rewritten in C.
      
      * ss/submodule-summary-in-c:
        submodule: port submodule subcommand 'summary' from shell to C
        t7421: introduce a test script for verifying 'summary' output
        submodule: rename helper functions to avoid ambiguity
        submodule: remove extra line feeds between callback struct and macro
      bbdba3d8
  4. 09 9月, 2020 1 次提交
  5. 04 9月, 2020 18 次提交
  6. 03 9月, 2020 4 次提交
    • J
      wt-status: tolerate dangling marks · f24c30e0
      Jonathan Tan 提交于
      When a user checks out the upstream branch of HEAD, the upstream branch
      not being a local branch, and then runs "git status", like this:
      
        git clone $URL client
        cd client
        git checkout @{u}
        git status
      
      no status is printed, but instead an error message:
      
        fatal: HEAD does not point to a branch
      
      (This error message when running "git branch" persists even after
      checking out other things - it only stops after checking out a branch.)
      
      This is because "git status" reads the reflog when determining the "HEAD
      detached" message, and thus attempts to DWIM "@{u}", but that doesn't
      work because HEAD no longer points to a branch.
      
      Therefore, when calculating the status of a worktree, tolerate dangling
      marks. This is done by adding an additional parameter to
      dwim_ref() and repo_dwim_ref().
      Signed-off-by: NJonathan Tan <jonathantanmy@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f24c30e0
    • J
      refs: move dwim_ref() to header file · ec06b055
      Jonathan Tan 提交于
      This makes it clear that dwim_ref() is just repo_dwim_ref() without the
      first parameter.
      Signed-off-by: NJonathan Tan <jonathantanmy@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ec06b055
    • J
      sha1-name: replace unsigned int with option struct · a4f66a78
      Jonathan Tan 提交于
      In preparation for a future patch adding a boolean parameter to
      repo_interpret_branch_name(), which might be easily confused with an
      existing unsigned int parameter, refactor repo_interpret_branch_name()
      to take an option struct instead of the unsigned int parameter.
      
      The static function interpret_branch_mark() is also updated to take the
      option struct in preparation for that future patch, since it will also
      make use of the to-be-introduced boolean parameter.
      Signed-off-by: NJonathan Tan <jonathantanmy@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a4f66a78
    • J
      fetch: no FETCH_HEAD display if --no-write-fetch-head · db3c293e
      Jonathan Tan 提交于
      887952b8 ("fetch: optionally allow disabling FETCH_HEAD update",
      2020-08-18) introduced the ability to disable writing to FETCH_HEAD
      during fetch, but did not suppress the "<source> -> FETCH_HEAD" message
      when this ability is used. This message is misleading in this case,
      because FETCH_HEAD is not written. Also, because "fetch" is used to
      lazy-fetch missing objects in a partial clone, this significantly
      clutters up the output in that case since the objects to be fetched are
      potentially numerous.
      
      Therefore, suppress this message when --no-write-fetch-head is passed
      (but not when --dry-run is set).
      Signed-off-by: NJonathan Tan <jonathantanmy@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      db3c293e