• Serinus@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    5 months ago

    Sure, but how much of that is justification and backpedaling?

    If it’s worth a commit, it’s worth a description. “Address vulns” “fix config” “remove files”. It doesn’t take much. Even if it’s just “more address vulns”.

    • magic_lobster_party@kbin.run
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      5 months ago

      Often I commit because I have to jump to another branch, so I want to save my progress. This means I can be in the middle of something, so I write a trash message.

      All those messages will disappear anyway after the merge request, because we use a squash policy. I can spend more time thinking of a more proper commit message when writing the merge request.

        • magic_lobster_party@kbin.run
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          5 months ago

          I don’t like stash for this purpose. What if I have to jump to a different branch a second time? Should I stash again?

          It can be difficult to know which stash belongs to which branch. Nah, I rather just commit so I don’t need to bother with that confusion.

          • lad
            link
            fedilink
            English
            arrow-up
            3
            ·
            5 months ago

            I agree that stash gets lost easier than a branch, but

            It can be difficult to know which stash belongs to which branch

            you know, stash also has a message to it, and afaik it remembers what branch you were on when stashed

      • lad
        link
        fedilink
        English
        arrow-up
        4
        ·
        5 months ago

        How about WIP: <description of what you wanted but did not achieve yet>?

      • robinm
        link
        fedilink
        arrow-up
        3
        ·
        5 months ago

        git worktree could become your new friend then :)