Git Product home page Git Product logo

Comments (9)

gdamoreira avatar gdamoreira commented on July 17, 2024 2

I agree @JordanAdams, for now I created an alias in my shell:

function gitm {
    args="$@"
    meta exec "git $args"
}

I use my commands like:

gitm st
gitm co branch

👍

from meta-git.

patrickleet avatar patrickleet commented on July 17, 2024

meta exec "alias" ?

from meta-git.

gdamoreira avatar gdamoreira commented on July 17, 2024

Considering git st as an alias to git status.
Executing meta git st is much better than meta exec "git st".

Don't you agree?

from meta-git.

mateodelnorte avatar mateodelnorte commented on July 17, 2024

These are aliases in general, not particular to git. Unfortunately, your aliases are determined by your local ~/.bashrc, ~/.bash_profile, ~/.zshrc, etc, file and there's no easy way to assume what shell or profile file someone will be depending on for normal use. Since we use child_process.exec, essentially, to execute these processes, a new shell is being spawned which will not have access to the aliases that would otherwise be set up by these files.

Happy to field a PR for something that would implement making it work, but it was a bit to bite off last I looked into it.

from meta-git.

gdamoreira avatar gdamoreira commented on July 17, 2024

Usually these alias is configured directly from git using git config --global alias.st status or git config alias.st status.

This configuration uses git config file in .git/config or ~/.gitconfig to save this settings:

The file looks like:

...
[alias]
	co = checkout
	st = status
...

Maybe using this config file could be possible to extends to use git's aliases, right?

from meta-git.

mateodelnorte avatar mateodelnorte commented on July 17, 2024

from meta-git.

JordanAdams avatar JordanAdams commented on July 17, 2024

Would it be simpler to just make meat-git act as a super thin passthrough for git? Essentially meta git [args] will just perform git [args] across each repo. This would allow for full feature parity with git and any aliases the user has set up.

from meta-git.

mateodelnorte avatar mateodelnorte commented on July 17, 2024

from meta-git.

stale avatar stale commented on July 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from meta-git.

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.