Giter Site home page Giter Site logo

add 'group' sub-command about gita HOT 7 CLOSED

nosarthur avatar nosarthur commented on August 16, 2024 5
add 'group' sub-command

from gita.

Comments (7)

deqing avatar deqing commented on August 16, 2024 1

My case is more like issue 71

We have two big projects, "Client" and "Server", where some repos are shared. It is like:

client-repo
client-plugin1-repo
client-plugin2-repo
client-lib-repo
common-lib-repo

server-repo
server-plugin1-repo
server-lib-repo
common-lib-repo

In this case, git ll might not easily present the relationships, I'd prefer something like:

gita group client client-repo client-plugin1-repo ...
gita group server server-repo server-plugin1-repo ...
gita ll client

from gita.

nosarthur avatar nosarthur commented on August 16, 2024

I am thinking of adding an optional argument to gita ll such that gita ll 1 only show repos from group 1

from gita.

nosarthur avatar nosarthur commented on August 16, 2024

Maybe it's better to add both group and setgroup. And keep the ll command as it is

After gita setgroup 1, only group 1 repos will show. And use gita setgroup to unset

from gita.

nosarthur avatar nosarthur commented on August 16, 2024

interesting, I haven't thought about one repo belonging to multiple groups before, but it definitely makes sense.

from gita.

rstacruz avatar rstacruz commented on August 16, 2024

👍 on this! I would think of them as tags, so I might have something like an @work and @personal tags... and I might have tags for @ruby and @js.

from gita.

nosarthur avatar nosarthur commented on August 16, 2024

Yeah, tagging makes sense too. I haven't decided on what to do exactly yet...

from gita.

nosarthur avatar nosarthur commented on August 16, 2024

Maybe something like this

gita group a-repo b-repo <br>
> group name? frontend
gita group a-repo c-repo <br>
> group name? secret

Here the user types in frontend and secret as tag names.

Then gita ll will show a, b, and c repos. gita ll frontend shows a and b. gita ll secret shows a and c.

from gita.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.