Earlier quoted context omitted.
Good point - but what is the use case where another source control system (like SVN?) works better ?
Virtually all use cases in my experience.
My Favourite Git Commit
121–130 of 389 posts
Re: My Favourite Git Commit
#122OR you could just write Replace invalid ASCII char. Fixes rake error 'invalid byte sequence in US-ASCII'. I don't want your entire life story in my commit log.
This case is probably longer than necessary, but I've saved a day of debugging on multiple occasions due to someone (also myself) leaving some lines of context, reasons and reasoning after the high-level description.
Re: My Favourite Git Commit
#123Earlier quoted context omitted.
Good point - but what is the use case where another source control system (like SVN?) works better ?
There's not really any case where another source control system works better , but lots of cases where they work just as well. Mercurial, for example, is functionally identical to git, but some people prefer its interface. For a highly centralized organization where people only ever work on the organization's intranet, a centralized source-control system like SVN works well enough, and may have some advantages for th…
Re: My Favourite Git Commit
#124OR you could just write Replace invalid ASCII char. Fixes rake error 'invalid byte sequence in US-ASCII'. I don't want your entire life story in my commit log.
Re: My Favourite Git Commit
#125I think my favorite (in terms of humor) is a commit from mpv complaining about locales and encodings. You can practically feel the committer's sheer frustration. [1] https://github.com/mpv-player/mpv/commit/1e70e82baa9193f6f02...
Even the papers are snarky. [2]
Re: My Favourite Git Commit
#126This gives me ideas. My commits are usually short and sweet - to the point. I document my code very well, however. One of my strengths in a previous life as a Master Automobile Technician was the ability to document the entire process -- from duplication of a concern, to troubleshooting, to correction, to verification...it's literally how I got paid (which I never understood why so many automotive techs took short cu…
I think I would phrase something more usefully as: keep it as short as possible, but no shorter.
I find it to be fairly rare that a commit is so self-evident that only the summary line can do.
Re: My Favourite Git Commit
#127Earlier quoted context omitted.
It's like preventing the headache with a guillotine.
Why? Usually non-ascii characters belongs to translation, and translation usually not belongs to codebase.
Re: My Favourite Git Commit
#128Code is simple. Humans overthink. I would prefer a commit message such as: "Fix invalid byte sequence in US-ASCII when running bundle exec rspec." than a dev that keep stucked trying to write a cool message and never fix the issue.
Re: My Favourite Git Commit
#129Issue: What is the problem we are attempting to fix
Cause: What is the root cause of the issue, since with bug reports this is usually much different then the random musings of the reporter
Fix: How does the commit address the cause.
Each of these should be 1-3 brief lines
Re: My Favourite Git Commit
#130I use the following convention to start the subject of commit(posted by someone in a similar HN thread): Add = Create a capability e.g. feature, test, dependency. Cut = Remove a capability e.g. feature, test, dependency. Fix = Fix an issue e.g. bug, typo, accident, misstatement. Bump = Increase the version of something e.g. dependency. Make = Change the build process, or tooling, or infra. Start = Begin doing somethi…
The whole thing should be width limited to 80 or 100 characters.
And the subject line should complete the sentence "If this commit is applied, it will...". It should start with a capital letter, then move to lowercase, and necessarily will start with a verb.