this post was submitted on 11 Jan 2025
87 points (98.9% liked)

Linux

5629 readers
323 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
all 13 comments
sorted by: hot top controversial new old
[–] uranibaba@lemmy.world 16 points 6 days ago
  • When "git fetch $remote" notices that refs/remotes/$remote/HEAD is missing and discovers what branch the other side points with its HEAD, refs/remotes/$remote/HEAD is updated to point to it.

That is nice.

[–] Phen 13 points 6 days ago (4 children)
[–] FizzyOrange@programming.dev 17 points 6 days ago

Yep, whenever they fix a bug it's added in a new flag that nobody knows about.

git --enable-sane-behaviour
[–] kbal@fedia.io 7 points 6 days ago (1 children)

As a casual git user I imagine the process normally goes something like this:

  1. Development happens.
  2. New feature makes it into the release version of git.
  3. New version makes it into the various linux distro repositories.
  4. People who run big git repos install the update.
  5. Serious nerds hear about it and use the feature.
  6. Many years pass.
  7. I learn about it, if it's widely used enough.
[–] colorado@programming.dev 1 points 5 days ago (1 children)

The big change in my opinion is we don't need to tell newcomers about git checkout at all. Git switch --create is much better.

I'm so old I still just use git checkout -b somebranch anyway.

[–] Mauryamj@programming.dev 1 points 6 days ago

U are the only one who knows my pain

[–] FizzyOrange@programming.dev 8 points 6 days ago

Git has four build systems?? Meson seems overkill if you already have CMake too. The only thing it really adds is that it's nicer to write (CMake is somewhere between Bash and PHP in sanity), but if you have to write CMake anyway...

[–] Ephera@lemmy.ml 9 points 6 days ago
[–] ethancedwards8@programming.dev 3 points 6 days ago (1 children)

If one wants to help with Git development, where would they start?

[–] FizzyOrange@programming.dev 3 points 5 days ago

The liquor store presumably? Just submitting patches is a simple 12 step process. I can't imagine the development and review process is any easier.

I have implemented a Git client from scratch which involved quite a bit of reading the Git source code. It's not bad code but it's definitely the sort of code that would break in all sorts of unexpected ways if you changed something. I wouldn't volunteer my time their tbh.