Merge branch 'fc/push-simple-updates-cleanup' into jch
authorJunio C Hamano <gitster@pobox.com>
Thu, 17 Jun 2021 02:26:16 +0000 (11:26 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jun 2021 02:26:16 +0000 (11:26 +0900)
commit5d48c070a57c775a4b8eb280ea121835cdd43216
treea6175d130360855bd9733b41dcfc37046ad7c265
parentf3333372eda8ae8856b7f9b3bf5a45ab2d61ab3b
parent7088ce71918a0f9fde2ceb421d4b332888a202c7
Merge branch 'fc/push-simple-updates-cleanup' into jch

Some more code and doc clarification around "git push".

* fc/push-simple-updates-cleanup:
  push: don't get a full remote object
  push: only check same_remote when needed
  push: remove trivial function
  push: remove redundant check
  push: factor out the typical case
  push: get rid of all the setup_push_* functions
  push: trivial simplifications
  push: make setup_push_* return the dst
  push: only get the branch when needed
  push: factor out null branch check
  push: split switch cases
  push: return immediately in trivial switch case
  push: create new get_upstream_ref() helper