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.
  • Q [email protected]

    My best work happens between typing out random stuff and pulling my hair out in the squash and reordering

    anafabula@discuss.tchncs.deA This user is from outside of this forum
    anafabula@discuss.tchncs.deA This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #23

    I can recommend Jujutsu (and jjui)

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

      match@pawb.socialM This user is from outside of this forum
      match@pawb.socialM This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #24

      cannot believe William Wallace gotem through time

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

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

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

        It's fine, the reviewer doesn't have time to actually look at the code anyway. Lgtm, ship it.

        1 Reply Last reply
        10
        • B [email protected]

          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.

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

          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.

          1 Reply Last reply
          0
          • S [email protected]

            I actually really hope I can get my collegues to use AI to describe their changes. Nothing worse than one of them becoming sick 2 days before release, you find none of their tickets contain any hints to what has been done and what not, then you check the commit log and all literally read "commit". Despite explaining to them lots of times why this is shit. Oh yeah and you have to do a full re-analysis of each ticket as the only information contained is the amount of time it will take them.

            Struggles of a senior dev.

            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
            #27

            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

            1 Reply Last reply
            4
            • B [email protected]

              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.

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

              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.

              1 Reply Last reply
              3
              • 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
                #29

                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.

                L 1 Reply Last reply
                3
                • match@pawb.socialM [email protected]

                  cannot believe William Wallace gotem through time

                  tetris11@lemmy.mlT This user is from outside of this forum
                  tetris11@lemmy.mlT This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #30

                  he was fighting the english with his dope rhymes before he ever held the sword

                  1 Reply Last reply
                  3
                  • eager_eagle@lemmy.worldE [email protected]

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

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

                    A PR for every tiny commit. You got it.

                    1 Reply Last reply
                    18
                    • M [email protected]

                      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.

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

                      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

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

                        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 I merc@sh.itjust.worksM 3 Replies Last reply
                        20
                        • R [email protected]
                          This post did not contain any content.
                          P This user is from outside of this forum
                          P This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #34

                          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 1 Reply Last reply
                          7
                          • 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
                                          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