Ḹḗṃɯӳ
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sir_Simon_Spamalot@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago

shit - An implementation of git in (almost) pure POSIX shell

git.sr.ht

external-link
message-square
22
fedilink
209
external-link

shit - An implementation of git in (almost) pure POSIX shell

git.sr.ht

Sir_Simon_Spamalot@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago
message-square
22
fedilink
~sircmpwn/shit - An implementation of git in (almost) pure POSIX shell - sourcehut git
git.sr.ht
external-link
alert-triangle
You must log in or register to comment.
  • NegativeLookBehind@lemmy.world
    link
    fedilink
    arrow-up
    93
    ·
    edit-2
    2 months ago

    deleted by creator

    • Ajay K@lemmy.world
      link
      fedilink
      arrow-up
      48
      ·
      1 year ago

      shit pull

      • femboy_bird@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        19
        ·
        1 year ago

        🤨

      • BaumGeist@lemmy.ml
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        shit stash

    • RiQuY@lemm.ee
      link
      fedilink
      arrow-up
      21
      ·
      1 year ago

      shit add .

    • Ignotum@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      shit fetch --all

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      shit restore

    • Exocrinous@lemm.ee
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 year ago

      Shit clone

      • degen@midwest.social
        link
        fedilink
        English
        arrow-up
        31
        ·
        1 year ago
        shit log
        
    • Something Burger 🍔@jlai.lu
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      –force

      • NegativeLookBehind@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        2 months ago

        deleted by creator

  • zero_spelled_with_an_ecks@programming.dev
    link
    fedilink
    arrow-up
    89
    ·
    edit-2
    1 year ago

    How to use

    1. Don’t

    Lol

  • speaker_hat@lemmy.one
    link
    fedilink
    arrow-up
    21
    ·
    1 year ago

    shit cherry-pick

  • xavier666@lemm.ee
    link
    fedilink
    English
    arrow-up
    20
    ·
    1 year ago

    Most advanced Linux developer’s naming skill on full display

  • JustUseMint@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    Someone explain why git in a posix shell is awful pls I don’t get it

    • FooBarrington@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      It’s not necessarily awful by itself (though this is not a production-ready implementation). shit is the name of the project, Shell Git.

      • JustUseMint@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        My comment was not in reference to the name.

        " Why the fuck would you use this

        Status

        Enough plumbing commands are written to make this write the initial commit with itself, which is how the initial commit was written. Huzzah.

        How to use

        Don't" 
        

        While humorous, I’m asking why you wouldn’t want to. What makes it so ridiculous so I can find it funny

        • Jordan_U@lemmy.ml
          link
          fedilink
          arrow-up
          8
          ·
          edit-2
          1 year ago

          Bash scripts are rarely the best choice for large, complicated, programs or for software that requires complex data structures. (Git is very much in both categories)

          In bash there are so many ways to accidentally shoot yourself in the foot that it’s absurd. That can lead to bizarre seeming behavior, which may break your script, or even lead to a security vulnerability.

          There are things that make it a bit more manageable, like “[[]]” instead of “[]”, but a frustrating number of such things are bash specific and this is written for the subset that is POSIX shell, meaning you don’t even get those token niceties.

          Where you generally “want” to use POSIX sh is for relatively simple scripts where the same file needs to run on Linux with bash, Linux with only BusyBox sh, OSX with zfs (and an outdated version of bash which will never be updated because Apple refuses to ship any GPLv3 software in MacOS).

          This is not that, and so one would expect that:

          1. The developer of this git implementation has poor / foolish judgement.

          2. Shit will be buggy

          3. Shit will be insecure

          4. Shit will be a PITA to try to troubleshoot or fix

          5. And shit will be slow, because bash is slow and this isn’t a job that you can just hand off all of the heavy lifting to grep / sed / awk*, because the data structures don’t lend themselves to that.

          * You could write the entire program in awk, and maybe even end up with something almost as fast as a python implementation done in ⅒ the time, but that would be terrible in other ways.

          • moonpiedumplings@programming.dev
            link
            fedilink
            arrow-up
            6
            ·
            1 year ago

            You could write the entire program in awk,

            https://github.com/djanderson/aho

            • Jordan_U@lemmy.ml
              link
              fedilink
              arrow-up
              3
              ·
              1 year ago

              I should have guessed.

              Thank you 🤣

  • witx@lemmy.sdf.org
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    The blame command becomes of uttermost importance

  • speaker_hat@lemmy.one
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    deleted by creator

  • toastal@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Waiting for shell darcs, sharcs

  • Übercomplicated@lemmy.ml
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    1 year ago

    Is this on HN? If not, someone neeeeds to post it!!!

    • Übercomplicated@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Op, just found it.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 368 users / day
  • 529 users / week
  • 1.93K users / month
  • 10.4K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.55K Posts
  • 27.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org