nosarthur / gita

Manage many git repos with sanity 从容管理多个git库
MIT License
1.67k stars 73 forks source link

Add context sub-command #97

Closed nosarthur closed 4 years ago

nosarthur commented 4 years ago

This is inspired by the taskwarrior

By using

gita context project1

only repos in project1 will be shown from this point on. For example gita ll only shows repos in project1.

Maybe project1 can be a group for now.

To remove the context

gita context none

relates to #82

nosarthur commented 4 years ago

To keep track of the context, we can create a new file called xx.ctx or xx.context in ~/.config/gita/, where xx is a group name.