• MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    3 hours ago

    git commit -m “A spirit trapped within a tree, no mouth to scream or eyes to see. A cage of bark, a prison of wood. A thing of rage where nature stood.”

  • Redkey@programming.dev
    link
    fedilink
    arrow-up
    15
    ·
    12 hours ago

    At the very least, please state which section you made small changes to, even if you are sure it’s not mentioning what or why.

  • tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    39
    arrow-down
    2
    ·
    edit-2
    18 hours ago

    Pleasure by William Wallace

    What is this life if, full of care,
    We have no time to stand and stare.

    No time to stand beneath the boughs
    And stare as long as she allows.

    No time to see, when woods we pass,
    Where squirrels hide deez nuts in grass.

    No time to see, in broad daylight,
    Streams full of stars, get high at night.

    No time to turn at Beauty’s glance,
    And watch her gangly feet like once.

    No time to wait till her mouth can
    Fit round that wide hog, whatup fam.

    A poor life this if, full of care,
    We have no time to stand and stare.

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    45
    ·
    19 hours ago

    If you write commit messages like this, at least have the decency of squashing them when merging. Thanks.

  • limer@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    13
    ·
    17 hours ago

    “Sometimes the best way to fix a bug is to introduce an unstable new feature that will later have many bug reports. But the code will now work. And was only written after email chain that har management involved.”

    “This is a temporary fix only, and the feature flag it’s under should be turned off after pull request 203. Under no circumstances should bug reports 1923 and 2045 use this new feature to fix issues, even if hours of work can be saved using this ”

    “I am blameless for any future issues caused by using this new feature. Here be dragons.”

    • baines@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 hour ago

      “this is temporary test code that should be removed before delivery to the customer”

      this is real

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      14 hours ago

      You should put this at the code, or at the flag documentation. The one place you it can’t go at all is in a commit message.

      • limer@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        13 hours ago

        Have better docs in those places; but for a class A mess, like above, make sure the approvers see this front and center. Make them sign for it

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    16
    ·
    18 hours ago

    Curate your commits, friends. They should be structured for the benefit of the reviewer. This can be accomplished with liberal use of interactive rebasing.

      • Shanmugha@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        15 hours ago

        Why not get them fired? Call me cruel anyone who feels like it, but leaving no sign of what has been done is just plain shit attitude to colleagues

      • balsoft@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        17 hours ago

        Maybe you should write a script that spits out AI description for a commit and then run it for commits without a proper description? Since it doesn’t require any insight from the commit author it should work the same.

        • Ephera@lemmy.ml
          link
          fedilink
          English
          arrow-up
          3
          ·
          14 hours ago

          Can we at least mention, though, that that’s kind of nonsensical, too? Give me a *very* high-level summary of what changed, but then the rest of the commit message should be the why (unless that’s genuinely obvious, like when adding a feature).

          If I actually want to know what changed, I can look at the code changes. I can’t find the why anywhere else, though. Nor can an LLM having to describe those random code changes.

        • Whelks_chance@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          15 hours ago

          I’m now tempted to do this for all several thousand commits in the main branch, and at the very least create a better changelog.

    • GreenKnight23@lemmy.world
      link
      fedilink
      arrow-up
      2
      arrow-down
      6
      ·
      18 hours ago

      this is literally the only thing I think is acceptable for AI to do for developers.

      nobody reads commit history anyway and they always go straight to blame to find out who to kick the fuck out of.

      • lad@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        And the blame has those commit messages. That is beside the fact that most authors may not even work there anymore

        • GreenKnight23@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          4 hours ago

          I don’t even waste my time anymore frankly. people just do a git add . and git commit -m "did some stuff".

          sorry, I’ve just worked with a lot of shitbag devs that honestly think of git as a flat filesystem that can’t even properly branch or merge.

          personally, I still put in clear commits and even do patch level adds. from what I have experienced though, using AI to generate those commit messages based on actual changes would be a godsend compared to the fuckery I’ve had to deal with.

  • NocturnalMorning@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    19 hours ago

    I once found a commit message in our commit history that just said, “i hate git…” bcz they hadn’t changed anything, and I think it took a new line character and decided that they’d actually changed like 5 lines of code twhen they hadn’t.

    It was the funniest shit, someone who was a senior lead for like 9 years that had left, and 5 years later I find that…

  • rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    7
    ·
    18 hours ago

    git commit -m “here is everything in this commit $(tar -czv . | base64)”