Code Monkey home page Code Monkey logo

Comments (6)

felipec avatar felipec commented on June 8, 2024 1

@phil-blain Cool. I replied to that and implemented that feature:

https://lore.kernel.org/git/[email protected]/

from git-completion.

felipec avatar felipec commented on June 8, 2024

Thank you. I will think about moving that documentation depending now many requests for changes we get.

However, you don't need __git_complete for those kinds of aliases, the Git completion already detects them, you just need to add a little help:

!f() { : git log ; ... ; } f

from git-completion.

phil-blain avatar phil-blain commented on June 8, 2024

Ah ! I had not understood correctly the comment at the top of git-completion.bash. Thanks.

I thought it was about just adding :, but it's really about adding : git <command> ; <whatever is your alias>.

However, I noticed another shortcoming that could be worth documenting. If I have a "shortcut alias" like git logo for git log --oneline --decorate for example, completion works, but if I also have a "recursive" alias like git loga for git logo --all, then completion does not work for git loga. This is a case where using __git_complete would help for Git aliases.

from git-completion.

felipec avatar felipec commented on June 8, 2024

Right. It shouldn't be too hard to fix. Have you contacted the mailing list about that issue?

from git-completion.

phil-blain avatar phil-blain commented on June 8, 2024

Yes : https://lore.kernel.org/git/[email protected]/

from git-completion.

felipec avatar felipec commented on June 8, 2024

I think the current version of the documentation in Bash has all the relevant information, plus the fix for recursive aliases should deal with the rest of the issues.

from git-completion.

Related Issues (8)

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.