1
0
mirror of https://gitea.com/gitea/tea.git synced 2024-11-03 04:27:21 -05:00
tea/cmd
Norwin 4cda7e0299 add tea pulls [checkout | clean] commands (#93 #97 #107) (#105)
Merge branch 'master' into issue-97/pulls-clean

vendor terminal dependency

pull/push: provide authentication method

automatically select an AuthMethod according to the
remote url type. If required, credentials are prompted for

login: store username & optional keyfile

refactor

refactor GetRemote

Merge branch 'master' into issue-97/pulls-clean

adress code review

add --ignore-sha flag

When set, the local branch is not matched against the remote sha,
but the remote branch name. This makes the command more flexible
with diverging branches.

add missing error check

fix branch-not-found case

Merge branch 'master' into issue-97/pulls-clean

use directory namespaces for branches & remotes

fix TeaCreateBranch()

improve method of TeaFindBranch()

now only checking .git/refs instead of looking up .git/config which may
not list the branch

add `tea pulls clean`

fixes #97

add copyright to new files

make linter happy

refactor: use new git functions for old code

add `tea pulls checkout`

Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: Norwin <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/105
Reviewed-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-04-19 03:09:03 +00:00
..
config.go add tea pulls [checkout | clean] commands (#93 #97 #107) (#105) 2020-04-19 03:09:03 +00:00
flags.go add tea pulls [checkout | clean] commands (#93 #97 #107) (#105) 2020-04-19 03:09:03 +00:00
issues.go add tea pulls [checkout | clean] commands (#93 #97 #107) (#105) 2020-04-19 03:09:03 +00:00
labels_test.go Add labels commands (#36) 2019-10-19 10:54:16 +00:00
labels.go add tea times command (#54) 2020-03-06 03:43:28 +00:00
log.go Minor improvements to command-line language (#66) 2019-11-03 20:34:41 +00:00
login.go add tea pulls [checkout | clean] commands (#93 #97 #107) (#105) 2020-04-19 03:09:03 +00:00
logout.go add tea times command (#54) 2020-03-06 03:43:28 +00:00
open.go add tea pulls [checkout | clean] commands (#93 #97 #107) (#105) 2020-04-19 03:09:03 +00:00
pulls.go add tea pulls [checkout | clean] commands (#93 #97 #107) (#105) 2020-04-19 03:09:03 +00:00
releases.go add tea times command (#54) 2020-03-06 03:43:28 +00:00
repos.go chore(cli): upgrade urfave/cli to v2 version (#85) 2020-01-04 17:44:25 +00:00
times.go add tea pulls [checkout | clean] commands (#93 #97 #107) (#105) 2020-04-19 03:09:03 +00:00