cli/git
Mislav Marohnić cba8331d55 Avoid auto-forking/pushing an already pushed branch in pr create
A branch is considered already pushed if its HEAD commit hash matches
the commit hash of one of the remote tracking branches:
`refs/remotes/<remote>/<branch>`

This mechanism allows the user to:

- Choose a remote as push target for their branch different than the one
  that would automatically get chosen for them by `pr create`;

- Avoid a `git push` operation (and its associated git hooks) if a push
  was not necessary in the first place.
2020-03-26 20:35:42 +01:00
..
git.go Avoid auto-forking/pushing an already pushed branch in pr create 2020-03-26 20:35:42 +01:00
git_test.go cleanup 2020-03-13 15:14:32 -05:00
remote.go Fix wrong repo url being used for pushing 2020-02-13 17:30:54 +01:00
remote_test.go Eliminate package-level state in git remote parsing 2019-10-25 21:48:25 +02:00
ssh_config.go Use var syntax when empty struct is initialized 2020-02-24 22:33:22 +01:00
ssh_config_test.go Eliminate package-level state in git remote parsing 2019-10-25 21:48:25 +02:00
url.go Eliminate package-level state in git remote parsing 2019-10-25 21:48:25 +02:00