1. 04 11月, 2015 10 次提交
    • J
      Tenth batch for 2.7 · c29024e5
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c29024e5
    • J
      Merge branch 'rs/daemon-plug-child-leak' · c3c592ef
      Junio C Hamano 提交于
      "git daemon" uses "run_command()" without "finish_command()", so it
      needs to release resources itself, which it forgot to do.
      
      * rs/daemon-plug-child-leak:
        daemon: plug memory leak
        run-command: factor out child_process_clear()
      c3c592ef
    • J
      Merge branch 'mk/blame-first-parent' · 6784eb5a
      Junio C Hamano 提交于
      "git blame" learnt to take "--first-parent" and "--reverse" at the
      same time when it makes sense.
      
      * mk/blame-first-parent:
        blame: allow blame --reverse --first-parent when it makes sense
        blame: extract find_single_final
        blame: test to describe use of blame --reverse --first-parent
      6784eb5a
    • J
      Merge branch 'rs/wt-status-detached-branch-fix' · a59d1d80
      Junio C Hamano 提交于
      "git status --branch --short" accessed beyond the constant string
      "HEAD", which has been corrected.
      
      * rs/wt-status-detached-branch-fix:
        wt-status: use skip_prefix() to get rid of magic string length constants
        wt-status: don't skip a magical number of characters blindly
        wt-status: avoid building bogus branch name with detached HEAD
        wt-status: exit early using goto in wt_shortstatus_print_tracking()
        t7060: add test for status --branch on a detached HEAD
      a59d1d80
    • J
      Merge branch 'rs/show-branch-argv-array' · 654b986d
      Junio C Hamano 提交于
      Code simplification.
      
      * rs/show-branch-argv-array:
        show-branch: use argv_array for default arguments
      654b986d
    • J
      Merge branch 'js/git-gdb' · 4b571eb0
      Junio C Hamano 提交于
      Allow easier debugging of a single "git" invocation in our test
      scripts.
      
      * js/git-gdb:
        test: facilitate debugging Git executables in tests with gdb
      4b571eb0
    • J
      Merge branch 'jk/initialization-fix-to-add-submodule-odb' · acfeaf8c
      Junio C Hamano 提交于
      We peek objects from submodule's object store by linking it to the
      list of alternate object databases, but the code to do so forgot to
      correctly initialize the list.
      
      * jk/initialization-fix-to-add-submodule-odb:
        add_submodule_odb: initialize alt_odb list earlier
      acfeaf8c
    • J
      Merge branch 'da/difftool' · c253b82e
      Junio C Hamano 提交于
      The code to prepare the working tree side of temporary directory
      for the "dir-diff" feature forgot that symbolic links need not be
      copied (or symlinked) to the temporary area, as the code already
      special cases and overwrites them.  Besides, it was wrong to try
      computing the object name of the target of symbolic link, which may
      not even exist or may be a directory.
      
      * da/difftool:
        difftool: ignore symbolic links in use_wt_file
      c253b82e
    • J
      Merge branch 'jc/mailinfo-lib' · c5d9418e
      Junio C Hamano 提交于
      Hotfix for a topic already in 'master'.
      
      * jc/mailinfo-lib:
        mailinfo: fix passing wrong address to git_mailinfo_config
      c5d9418e
    • J
      Merge branch 'kn/for-each-branch' · 415095f0
      Junio C Hamano 提交于
      Using the timestamp based criteria in "git branch --sort" did not
      tiebreak branches that point at commits with the same timestamp (or
      the same commit), making the resulting output unstable.
      
      * kn/for-each-branch:
        ref-filter: fallback on alphabetical comparison
      415095f0
  2. 03 11月, 2015 2 次提交
  3. 02 11月, 2015 7 次提交
  4. 31 10月, 2015 17 次提交
    • M
      blame: allow blame --reverse --first-parent when it makes sense · 700fd28e
      Max Kirillov 提交于
      Allow combining --reverse and --first-parent if initial commit of
      specified range is at the first-parent chain starting from the final
      commit. Disable the prepare_revision_walk()'s builtin children
      collection, instead picking only the ones which are along the first
      parent chain.
      Signed-off-by: NMax Kirillov <max@max630.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      700fd28e
    • M
      blame: extract find_single_final · 1b0d4000
      Max Kirillov 提交于
      Signed-off-by: NMax Kirillov <max@max630.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1b0d4000
    • M
      blame: test to describe use of blame --reverse --first-parent · ec352401
      Max Kirillov 提交于
      Reverse blame can be used to locate removal of lines which does not
      change adjacent lines. Such edits do not appear in non-reverse blame,
      because the adjacent lines last changed commit is older history, before
      the edit.
      
      For a big and active project which uses topic branches, or analogous
      feature, for example pull-requests, the history can contain many
      concurrent branches, and even after an edit merged into the target
      branch, there are still many (sometimes several tens or even hundreds)
      topic branch which do not contain it:
      
       a0--a1-----*a2-*a3-a4...-*a100
       |\         /   /         /
       | b0-B1..bN   /         /
       |\           /         /
       | c0..   ..cN         /
       \                    /
        z0..            ..zN
      
      Here, the '*'s mark the first parent in merge, and uppercase B1 - the
      commit where the line being blamed for was removed. Since commits cN-zN
      do not contain B1, they still have the line removed in B1, and
      reverse blame can report that the last commit for the line was zN
      (meaning that it was removed in a100). In fact it really does return
      some very late commit, and this makes it unusable for finding the B1
      commit.
      
      The search could be done by blame --reverse --first-parent. For range
      a0..a100 it would return a1, and then only one additional blame along
      the a0..bN will return the desired commit b0. But combining --reverse
      and --first-parent was forbidden in 95a4fb0e, because incorrectly
      specified range could produce unexpected and meaningless result.
      
      Add test which describes the expected behavior of
      `blame --reverse --first-parent` in the case described above.
      Signed-off-by: NMax Kirillov <max@max630.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ec352401
    • J
      test: facilitate debugging Git executables in tests with gdb · 6a94088c
      Johannes Schindelin 提交于
      When prefixing a Git call in the test suite with 'debug ', it will
      now be run with GDB, allowing the developer to debug test failures
      more conveniently.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6a94088c
    • K
      ref-filter: fallback on alphabetical comparison · 9e468334
      Karthik Nayak 提交于
      In ref-filter.c the comparison of refs while sorting is handled by
      cmp_ref_sorting() function. When sorting as per numerical values
      (e.g. --sort=objectsize) there is no fallback comparison when both
      refs hold the same value. This can cause unexpected results (i.e. the
      order of listing refs with equal values cannot be pre-determined) as
      pointed out by Johannes Sixt ($gmane/280117).
      
      Hence, fallback to alphabetical comparison based on the refname
      whenever the other criterion is equal.
      
      A test in t3203 was expecting that branch-two sorts before HEAD, which
      happened to be how qsort(3) on Linux sorted the array, but (1) that
      outcome was not even guaranteed, and (2) once we start breaking ties
      with the refname, "HEAD" should sort before "branch-two" so the
      original expectation was inconsistent with the criterion we now use.
      
      Update it to match the new world order, which we can now depend on
      being stable.
      Helped-by: NJunio C Hamano <gitster@pobox.com>
      Reported-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NKarthik Nayak <Karthik.188@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9e468334
    • J
      Ninth batch for 2.7 · 2635c2b8
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2635c2b8
    • J
      Merge branch 'jk/merge-file-exit-code' · 54bc4141
      Junio C Hamano 提交于
      "git merge-file" tried to signal how many conflicts it found, which
      obviously would not work well when there are too many of them.
      
      * jk/merge-file-exit-code:
        merge-file: clamp exit code to maximum 127
      54bc4141
    • J
      Merge branch 'gr/rebase-i-drop-warn' · f60b5dc6
      Junio C Hamano 提交于
      Recent update to "rebase -i" that tries to sanity check the edited
      insn sheet before it uses it has become too picky on Windows where
      CRLF left by the editor is turned into a trailing CR on the line
      read via the "read" built-in command.
      
      * gr/rebase-i-drop-warn:
        rebase-i: work around Windows CRLF line endings
        t3404: "rebase -i" gets broken when insn sheet uses CR/LF line endings
      f60b5dc6
    • J
      Merge branch 'xf/user-manual-ff' · 7fd4181c
      Junio C Hamano 提交于
      * xf/user-manual-ff:
        user-manual: fix the description of fast-forward
      7fd4181c
    • J
      Merge branch 'rs/pop-commit' · 0692a6c2
      Junio C Hamano 提交于
      Code simplification.
      
      * rs/pop-commit:
        use pop_commit() for consuming the first entry of a struct commit_list
      0692a6c2
    • J
      Merge branch 'mk/blame-error-message' · 23d58a00
      Junio C Hamano 提交于
      The error message from "git blame --contents --reverse" incorrectly
      talked about "--contents --children".
      
      * mk/blame-error-message:
        blame: fix option name in error message
      23d58a00
    • J
      Merge branch 'js/misc-fixes' · 808d1192
      Junio C Hamano 提交于
      Various compilation fixes and squelching of warnings.
      
      * js/misc-fixes:
        Correct fscanf formatting string for I64u values
        Silence GCC's "cast of pointer to integer of a different size" warning
        Squelch warning about an integer overflow
      808d1192
    • J
      Merge branch 'js/imap-send-curl-compilation-fix' · e88e424f
      Junio C Hamano 提交于
      "git imap-send" did not compile well with older version of cURL library.
      
      * js/imap-send-curl-compilation-fix:
        imap-send: only use CURLOPT_LOGIN_OPTIONS if it is actually available
      e88e424f
    • J
      Merge branch 'jk/delete-modechange-conflict' · 203501b3
      Junio C Hamano 提交于
      Merging a branch that removes a path and another that changes the
      mode bits on the same path should have conflicted at the path, but
      it didn't and silently favoured the removal.
      
      * jk/delete-modechange-conflict:
        merge: detect delete/modechange conflict
        t6031: generalize for recursive and resolve strategies
        t6031: move triple-rename test to t3030
      203501b3
    • J
      Merge branch 'jc/add-u-A-default-to-top' · f7722a44
      Junio C Hamano 提交于
      "git --literal-pathspecs add -u/-A" without any command line
      argument misbehaved ever since Git 2.0.
      
      * jc/add-u-A-default-to-top:
        add: simplify -u/-A without pathspec
      f7722a44
    • J
      Merge branch 'ar/clone-dissociate' · 908700c0
      Junio C Hamano 提交于
      "git clone --dissociate" used to require that "--reference" was
      used at the same time, but you can create a new repository that
      borrows objects from another without using "--reference", namely
      with "clone --local" from a repository that borrows objects from
      other repositories.
      
      * ar/clone-dissociate:
        clone: allow "--dissociate" without reference
      908700c0
    • J
      Merge git://ozlabs.org/~paulus/gitk · 482456a4
      Junio C Hamano 提交于
      * git://ozlabs.org/~paulus/gitk:
        gitk: Update Russian translation
        gitk: Add accelerator to German locale
        gitk: Add accelerators to Japanese locale
        gitk: Update msgid's for menu items with accelerator
        gitk: l10n: Update Catalan translation
        gitk: Add missing accelerators
        Updated Vietnamese translation
      482456a4
  5. 30 10月, 2015 4 次提交