23
Git Things (matklad.github.io)
all 8 comments
sorted by: hot top new old
[-] Kache@lemm.ee 22 points 2 years ago* (last edited 2 years ago)

A title as uninformative as the single . commit messages he suggests writing.

Bare minimums of typo, refactor, whitespace, comments are barely any effort -- less than the thought it takes to name variables and functions.

I really can't agree with completely meaningless messages like minor and .

[-] technom@programming.dev 5 points 2 years ago

Git is a lot of things at once:

  1. A tool to record development history - warts and all
  2. A tool to create a logical sequence of changes
  3. A tool to communicate intent and ideas to a maintainer

Meaningless messages like minor and . don't suit any of these roles - not even 1. Even when recording development history with all mistakes, you'd still need context when you look back at the history. Matklad is a well respected developer. I wonder why he's make such a bizarre claim.

[-] snowe@programming.dev 5 points 2 years ago

That’s why for typical project it is useful to merge pull requests into the main branch — the linear sequence of merge commits is a record of successful CI runs, and is a set of commits you want to git bisect over.

... if you do this you completely negate your ability to use git bisect...

[-] themusicman@lemmy.world 2 points 2 years ago

Quite the opposite. If you fast forward merge without squashing, you lose the ability to meaningfully bisect, since only the head of each merge is checked by CI - other commits may not even build

[-] snowe@programming.dev 1 points 2 years ago

My point was about merging in general. Unless you’re either

  1. Making sure every single commit builds
  2. Squashing and merging, with no merge commit

Then you’re not going to be able to effectively use git bisect.

[-] Fal@yiffit.net 1 points 2 years ago

Squash fast forward merge is the only way

this post was submitted on 01 Jan 2024
23 points (73.5% liked)

Programming

28493 readers
302 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS