News for hackers. Stuff that matters.
Re:SDL Moves to GitHub by acdha on Tuesday February 09, 2021 @05:26PM (#26083266)
> To create a new commit in git you need to run `git add` followed by `git commit`.

Or `git commit -a` — and if you're making commits that frequently it'll be in your shell history anyway.

Re:SDL Moves to GitHub by lmm on Tuesday February 09, 2021 @08:16PM (#26084746)
Except that if you added a new file then "git commit -a" will miss it out.

Git's UI is full of little sharp edges like that. You get used to them, but it's just needlessly fiddly to start with.

Re:SDL Moves to GitHub by acdha on Tuesday February 09, 2021 @09:42PM (#26085214)
> Except that if you added a new file then "git commit -a" will miss it out.

Exactly like Mercurial, you mean? Try it if you haven't in a while: you have to call “hg add” to add a new file or you'll get “nothing changed” when you run "hg commit".

The reason why neither of them has a default “add everything in the current directory” mode is that this is how you end up with repositories containing temporary files, build artifacts, and secrets.

This is not a good example to base ”much better UI” claims on.