• Aaron Gable's avatar
    Simplify git-cl-diff for Gerrit · a718c3eb
    Aaron Gable authored
    Previously, git-cl-diff went through a dance where it would create
    a new branch, download the uploaded patch onto that branch, and
    then diff against that. This had all sorts of problems: if you
    aborted the command, it might leave you on that branch; if you have
    local changes, they might get clobbered or the command would refuse
    to run.
    
    Now that we're in a Gerrit-only world, and patchsets are by definition
    equivalent to commits, we can simply diff against whatever local commit
    was last uploaded or, in a pinch, fetch the uploaded commit and diff
    against that.
    
    Bug: 759893
    Change-Id: Ia4b93dcfb9b8aba85817e62731f68d6450026e75
    Reviewed-on: https://chromium-review.googlesource.com/639915Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
    Commit-Queue: Aaron Gable <agable@chromium.org>
    a718c3eb
Name
Last commit
Last update
..
gstools Loading commit data...
bot_update_coverage_test.py Loading commit data...
checkout_test.py Loading commit data...
download_from_google_storage_unittests.py Loading commit data...
fix_encoding_test.py Loading commit data...
gclient_eval_unittest.py Loading commit data...
gclient_scm_test.py Loading commit data...
gclient_smoketest.py Loading commit data...
gclient_test.py Loading commit data...
gclient_utils_test.py Loading commit data...
git_cache_test.py Loading commit data...
git_cl_creds_check_report.txt Loading commit data...
git_cl_test.py Loading commit data...
git_common_test.py Loading commit data...
git_dates_test.py Loading commit data...
git_drover_test.py Loading commit data...
git_footers_test.py Loading commit data...
git_hyper_blame_test.py Loading commit data...
git_number_test.py Loading commit data...
git_rebase_update_test.py Loading commit data...
gsutil_test.py Loading commit data...
owners_finder_test.py Loading commit data...
owners_unittest.py Loading commit data...
patch_test.py Loading commit data...
presubmit_unittest.py Loading commit data...
recipes_test.py Loading commit data...
scm_unittest.py Loading commit data...
subprocess2_test.py Loading commit data...
upload_to_google_storage_unittests.py Loading commit data...
watchlists_unittest.py Loading commit data...