Skip to content
Snippets Groups Projects
  1. Dec 01, 2018
  2. Nov 30, 2018
    • Johannes Schindelin's avatar
      rebase --stat: fix when rebasing to an unrelated history · 8797f0f0
      Johannes Schindelin authored
      
      When rebasing to a commit history that has no common commits with the
      current branch, there is no merge base. In diffstat mode, this means
      that we cannot compare to the merge base, but we have to compare to the
      empty tree instead.
      
      Also, if running in verbose diffstat mode, we should not output
      
      	Changes from <merge-base> to <onto>
      
      as that does not make sense without any merge base.
      
      Note: neither scripted nor built-in versoin of `git rebase` were
      prepared for this situation well. We use this opportunity not only to
      fix the bug(s), but also to make both versions' output consistent in
      this instance. And add a regression test to keep this working in all
      eternity.
      
      Reported-by: default avatarÆvar Arnfjörð Bjarmason <avarab@gmail.com>
      Signed-off-by: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      8797f0f0
    • Johannes Schindelin's avatar
      rebase: fix GIT_REFLOG_ACTION regression · 13a5a9f0
      Johannes Schindelin authored
      
      The scripted version of "rebase" honored the `GIT_REFLOG_ACTION`,
      and some automation scripts expected the reflog entries to be
      prefixed with "rebase -i", not "rebase", after running "rebase -i".
      This regressed in the reimplementation in C.
      
      Fix that, and add a regression test, both with `GIT_REFLOG_ACTION`
      set and unset.
      
      Note: the reflog message for "rebase finished" did *not* honor
      GIT_REFLOG_ACTION, and as we are very late in the v2.20.0-rcN phase,
      we leave that bug for later (as it seems that that bug has been with
      us from the very beginning).
      
      Reported by Ian Jackson.
      
      Signed-off-by: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      13a5a9f0
    • Junio C Hamano's avatar
      format-patch: do not let its diff-options affect --range-diff · d8981c3f
      Junio C Hamano authored
      
      Stop leaking how the primary output of format-patch is customized to
      the range-diff machinery and instead let the latter use its own
      "reasonable default", in order to correct the breakage introduced by
      a5170794 ("Merge branch 'ab/range-diff-no-patch'", 2018-11-18) on
      the 'master' front.  "git format-patch --range-diff..." without any
      weird diff option started to include the "range-diff --stat" output,
      which is rather useless right now, that made the whole thing
      unusable and this is probably the least disruptive way to whip the
      codebase into a shippable shape.
      
      We may want to later make the range-diff driven by format-patch more
      configurable, but that would have to wait until we have a good
      design.
      
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      d8981c3f
  3. Nov 29, 2018
  4. Nov 27, 2018
    • SZEDER Gábor's avatar
      t/lib-git-daemon: fix signal checking · 4c2eb064
      SZEDER Gábor authored
      
      Test scripts checking 'git daemon' stop the daemon with a TERM signal,
      and the 'stop_git_daemon' helper checks the daemon's exit status to
      make sure that it indeed died because of that signal.
      
      This check is bogus since 03c39b34 (t/lib-git-daemon: use
      test_match_signal, 2016-06-24), for two reasons:
      
        - Right after killing 'git daemon', 'stop_git_daemon' saves its exit
          status in a variable, but since 03c39b34 the condition checking
          the exit status looks at '$?', which at this point is not the exit
          status of 'git daemon', but that of the variable assignment, i.e.
          it's always 0.
      
        - The unexpected exit status should abort the whole test script with
          'error', but it doesn't, because 03c39b34 forgot to negate
          'test_match_signal's exit status in the condition.
      
      This patch fixes both issues.
      
      Signed-off-by: default avatarSZEDER Gábor <szeder.dev@gmail.com>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      4c2eb064
  5. Nov 26, 2018
  6. Nov 24, 2018
  7. Nov 21, 2018
Loading