gitea-tea/cmd
Norwin e96cfdbbe7 `tea pr checkout`: dont create local branches (#314)
This avoids creation of local branches, to avoid cluttering the local repo:
- if the commit already exists on the tip of a local branch, check that one out
- otherwise check out the remote tracking branch (`refs/remotes/<remote>/<head>`), and suggest what to do if you want to make changes.

I'm not certain this behaviour is actually better, I suggest leaving this open for a while for people to try out the new behaviour:
```
tea pr checkout 314
make install
```

fixes #293

Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/314
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
2021-03-02 21:50:11 +08:00
..
flags Add `tea issues --fields`, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
issues Add `tea issues --fields`, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
labels Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
login Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
milestones Add `tea issues --fields`, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
organizations Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
pulls `tea pr checkout`: dont create local branches (#314) 2021-03-02 21:50:11 +08:00
releases Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
repos Add `tea issues --fields`, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
times Improve `tea time` (#319) 2020-12-23 12:58:36 +08:00
autocomplete.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
categories.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
comment.go tea comment: handle piped stdin (#322) 2021-03-01 01:47:36 +08:00
issues.go Add `tea comment` and show comments of issues/pulls (#313) 2020-12-22 00:07:35 +08:00
labels.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
login.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
logout.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
milestones.go Add `tea issues --fields`, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
notifications.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
open.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
organizations.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
pulls.go Add `tea comment` and show comments of issues/pulls (#313) 2020-12-22 00:07:35 +08:00
releases.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
repos.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
times.go Improve `tea time` (#319) 2020-12-23 12:58:36 +08:00