495
submitted 5 months ago* (last edited 5 months ago) by lemmyreader@lemmy.ml to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] caseyweederman@lemmy.ca 7 points 5 months ago

I just learned git bisect from https://ohmygit.org/! You run it, then checkout other commits all over the project, and mark them with git bisect good or git bisect bad. Then it paints all commits that led to the good one as good, and all the ones after the bad one as bad, so you just keep narrowing your window by playing checkout Jezzball until there's only one commit left: the one that introduced the bad state.

[-] catloaf@lemm.ee 14 points 5 months ago

The technical term is binary search.

[-] caseyweederman@lemmy.ca 1 points 5 months ago

Yeah but I didn't know that term until I looked it up. Also OhMyGit didn't cover using tests and automating it.

[-] huginn@feddit.it 2 points 5 months ago

Definitely a useful tool and one you should've learned in a college algorithms course. Binary search backs a lot of high performance data structures

this post was submitted on 17 Apr 2024
495 points (98.1% liked)

Linux

47343 readers
1232 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS