Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: git/git
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3c9b393
Choose a base ref
...
head repository: git/git
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e3d6539
Choose a head ref
  • 2 commits
  • 5 files changed
  • 1 contributor

Commits on May 7, 2019

  1. t2018: cleanup in current test

    Before, in t2018, if do_checkout failed to create `branch2`, the next
    test-case would run `git branch -D branch2` but then fail because it was
    expecting `branch2` to exist, even though it doesn't. As a result, an
    early failure could cause a cascading failure of tests.
    
    Make test-case responsible for cleaning up their own branches so that
    future tests can start with a sane environment.
    
    Signed-off-by: Denton Liu <liu.denton@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    Denton-L authored and gitster committed May 7, 2019
    Configuration menu
    Copy the full SHA
    27434bf View commit details
    Browse the repository at this point in the history
  2. branch: make create_branch accept a merge base rev

    When we ran something like
    
        $ git checkout -b test master...
    
    it would fail with the message
    
        fatal: Not a valid object name: 'master...'.
    
    This was caused by the call to `create_branch` where `start_name` is
    expected to be a valid rev. However, git-checkout allows the branch to
    be a valid _merge base_ rev (i.e. with a "...") so it was possible for
    an invalid rev to be passed in.
    
    Make `create_branch` accept a merge base rev so that this case does not
    error out.
    
    As a side-effect, teach git-branch how to handle merge base revs as
    well.
    
    Helped-by: Junio C Hamano <gitster@pobox.com>
    Signed-off-by: Denton Liu <liu.denton@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    Denton-L authored and gitster committed May 7, 2019
    Configuration menu
    Copy the full SHA
    e3d6539 View commit details
    Browse the repository at this point in the history
Loading