Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Git Commit Message

Git Commit Message

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
57 Posts 36 Posters 249 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • eager_eagle@lemmy.worldE [email protected]

    git commit -m 'a meaningful message'

    M This user is from outside of this forum
    M This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #35

    This is where I thought it was going as well.

    1 Reply Last reply
    3
    • tetris11@lemmy.mlT [email protected]

      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.

      Z This user is from outside of this forum
      Z This user is from outside of this forum
      [email protected]
      wrote on last edited by [email protected]
      #36

      Shakespeare may have coined a lot of English words, but only Wallace can claim deez nuts.

      1 Reply Last reply
      12
      • G [email protected]

        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.

        S This user is from outside of this forum
        S This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #37

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

        G 1 Reply Last reply
        0
        • anafabula@discuss.tchncs.deA [email protected]

          I can recommend Jujutsu (and jjui)

          Q This user is from outside of this forum
          Q This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #38

          I keep putting that off, but maybe I should really dive into that.
          Thanks for telling me about the TUI btw, I didn't know we had that too now!

          1 Reply Last reply
          2
          • S [email protected]

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

            G This user is from outside of this forum
            G This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #39

            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.

            S 1 Reply Last reply
            4
            • L [email protected]

              “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.”

              M This user is from outside of this forum
              M This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #40

              Nope. That's a temporary solution™.

              1 Reply Last reply
              0
              • R [email protected]
                This post did not contain any content.
                M This user is from outside of this forum
                M This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #41

                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."

                F 1 Reply Last reply
                8
                • R [email protected]

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

                  runeko@programming.devR This user is from outside of this forum
                  runeko@programming.devR This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #42

                  "Small changes to a few sections." There. Happy?

                  1 Reply Last reply
                  5
                  • L [email protected]

                    “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.”

                    B This user is from outside of this forum
                    B This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #43

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

                    this is real

                    1 Reply Last reply
                    1
                    • R [email protected]
                      This post did not contain any content.
                      B This user is from outside of this forum
                      B This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #44

                      Always put a ticket number in the commit message. That can make it much easier later to find out what the context was for some weird solution.

                      1 Reply Last reply
                      3
                      • M [email protected]

                        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."

                        F This user is from outside of this forum
                        F This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #45

                        git commit -m "$(fortune | cowsay)"

                        1 Reply Last reply
                        5
                        • R [email protected]

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

                          I This user is from outside of this forum
                          I This user is from outside of this forum
                          [email protected]
                          wrote on last edited by [email protected]
                          #46

                          "Small changes to everything"
                          98 files changed, 7568 insertions(+), 1022 deletions(-)

                          1 Reply Last reply
                          6
                          • R [email protected]

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

                            I This user is from outside of this forum
                            I This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #47

                            Go for broke
                            git commit -m "It works on my machine $(tar -ca . -C / | base64)"

                            1 Reply Last reply
                            1
                            • R [email protected]
                              This post did not contain any content.
                              M This user is from outside of this forum
                              M This user is from outside of this forum
                              [email protected]
                              wrote on last edited by [email protected]
                              #48

                              For complex changes go with "self-explanatory" just to fuck with peoples' confidence

                              1 Reply Last reply
                              0
                              • R [email protected]
                                This post did not contain any content.
                                J This user is from outside of this forum
                                J This user is from outside of this forum
                                [email protected]
                                wrote on last edited by [email protected]
                                #49

                                I've worked with a few people who are just incomprehensible. One refuses to write commit messages of any detail. Just "work in progress". Cast him into the pit.

                                There was another guy that refused to name his tests. His code was like

                                describe(''. () => {
                                  it('', () => {
                                     expect(someFunc()).toEqual(0);
                                  }
                                 it('', () => {
                                    expect(someFunc(1)).toEqual(0);
                                  }
                                 it('', () => {
                                   expect(someFunc("").toEqual(1);
                                 }
                                }
                                

                                He was like, "Test names are like comments and they turn into lies! So I'm not going to do it."

                                I was like, a. what the fuck. b. do you also not name your files? projects? children?

                                He was working at a very big company last I heard.

                                edit: If you're unfamiliar, the convention is to put a human readable description where those empty strings are. This is used in the test output. If one fails, it'll typically tell include the name in the output.

                                merc@sh.itjust.worksM 1 Reply Last reply
                                1
                                • R [email protected]
                                  This post did not contain any content.
                                  H This user is from outside of this forum
                                  H This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #50

                                  git commit -m "Boss makes a dollar, I make a dime so I comment meaningful on company time"

                                  1 Reply Last reply
                                  1
                                  • G [email protected]

                                    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.

                                    S This user is from outside of this forum
                                    S This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #51

                                    To this I completely agree, a lot of people don't want to use the tools for the benefit of the future colleagues or even self

                                    1 Reply Last reply
                                    2
                                    • R [email protected]

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

                                      merc@sh.itjust.worksM This user is from outside of this forum
                                      merc@sh.itjust.worksM This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #52

                                      Also, what were you hoping to accomplish? At a minimum, are you fixing a bug? Adding a feature? Cleaning up ugly code? Trying to improve performance? Adding comments to something that wasn't obvious?

                                      Did you change an interface that other people use in a way that might break something? Even if it's fixing a bug, is that a bug that other people might have been relying on?

                                      I think the most problematic changes are the little fixes, because often the CL goes from something that looks like it should work, to something else that also looks like it should work. It's very helpful when the commit message describes how it was broken. Otherwise, if you have to roll back the changes you don't know what might get broken again.

                                      1 Reply Last reply
                                      1
                                      • P [email protected]

                                        Love it.

                                        While folks are thinking about git commit messages I will offer this.

                                        https://cbea.ms/git-commit/

                                        My only criticism of the essay is that the most important bit is listed at number 7.

                                        merc@sh.itjust.worksM This user is from outside of this forum
                                        merc@sh.itjust.worksM This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #53

                                        See also semantic commit messages where you tag every commit with the type of commit: feature, fix, docs, refactor, test, etc.

                                        My only beef with it is that they chose "feat" as a way to shorten the word "feature" when "feat" is already a word that means something different. Not every feature is a feat, and a lot of the biggest feats are actually bug fixes.

                                        P 1 Reply Last reply
                                        1
                                        • J [email protected]

                                          I've worked with a few people who are just incomprehensible. One refuses to write commit messages of any detail. Just "work in progress". Cast him into the pit.

                                          There was another guy that refused to name his tests. His code was like

                                          describe(''. () => {
                                            it('', () => {
                                               expect(someFunc()).toEqual(0);
                                            }
                                           it('', () => {
                                              expect(someFunc(1)).toEqual(0);
                                            }
                                           it('', () => {
                                             expect(someFunc("").toEqual(1);
                                           }
                                          }
                                          

                                          He was like, "Test names are like comments and they turn into lies! So I'm not going to do it."

                                          I was like, a. what the fuck. b. do you also not name your files? projects? children?

                                          He was working at a very big company last I heard.

                                          edit: If you're unfamiliar, the convention is to put a human readable description where those empty strings are. This is used in the test output. If one fails, it'll typically tell include the name in the output.

                                          merc@sh.itjust.worksM This user is from outside of this forum
                                          merc@sh.itjust.worksM This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #54

                                          I get the hesitation that things can turn into lies, but that's a sign that you're doing things wrong. That also tends to happen to comments that are far away from the relevant code, like the documentation of a 100 line function. The function can change while the comment is no longer visible on the screen, so it's easy to forget to also fix the comment.

                                          But test strings like that are designed to avoid that problem. They're right there next to your tests for a reason. You should always be right next to them when you're changing the test.

                                          Fundamentally, this is something that has to be addressed with code reviews. If someone can commit their changes to a group repository without anybody else seeing them, you're going to get stuff like this. As soon as you get decent code reviews, you can just reject a change where there are tests without documentation, the same way you can reject a change to a test where the documentation is now out of date.

                                          J 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups