13 votes

Shit, An implementation of git in (almost) pure POSIX shell

Tags: git, shell, fluff, joke

4 comments

  1. [3]
    reese
    Link
    Lol. Related—I'm making a Node-based API/CLI to do a thing. In the process I found isomorphic-git (git implemented in JavaScript). Unsettling, yes, but it actually works! I tried it; however, its...

    How to use
    Don't

    Lol.

    Related⁠—I'm making a Node-based API/CLI to do a thing. In the process I found isomorphic-git (git implemented in JavaScript). Unsettling, yes, but it actually works! I tried it; however, its API has a lot of catch-up to do, so I settled on orchestrating git with execa.

    3 votes
    1. [2]
      Bauke
      Link Parent
      Something like simple-git?

      Something like simple-git?

      2 votes
      1. reese
        (edited )
        Link Parent
        Oh, no. I never reinvent the wheel. I need git to "intelligently" determine if, in the interactive mode of my CLI, packages in a (non-JavaScript) monorepo changed. If not, it won't ask to...

        Oh, no. I never reinvent the wheel.

        I need git to "intelligently" determine if, in the interactive mode of my CLI, packages in a (non-JavaScript) monorepo changed. If not, it won't ask to SemVer-bump them and perform related tasks. It's just an icing-on-the-cake enhancement. Anyway, for the purpose described, this command is my friend:

        git diff --name-only origin/some-branch some-branch
        

        With that, I have relative path names I can use to determine if a file in the same directory or subdirectory of a package manifest changed, meaning the interactive CLI should ask about said package.

        To clarify, what I'm making simply does not exist. It's actually not for web apps, per se. I'm apprehensive sharing details not because I don't want to share, but I don't know how I feel about doxing this account yet. If I didn't say so many stupid things here, I'd be more open to it.

        2 votes
  2. Chobbes
    Link
    I'm all for programming random things as art and exercise, but sometimes I see something and go "that's rad, but maaaaybe a little too far."

    I'm all for programming random things as art and exercise, but sometimes I see something and go "that's rad, but maaaaybe a little too far."

    2 votes