Earlier quoted context omitted.
These are great
I don’t understand any of them. Normally even when I’m not really familiar with a tool, I have enough background knowledge to understand why it’s funny e.g. Scheme and Haskell jokes or something. I do use basic git regularly and all of this is over my head. I don’t know if that speaks to how complicated and unintuitive some of the advanced stuff is?
git's –end-of-options Flag
61–70 of 133 posts
Re: git's –end-of-options Flag
#62Earlier quoted context omitted.
It is an en dash, not an em dash, since it's about as wide as an n. Some software substitutes a double hyphen -- with an en dash rather than em, and use the triple hyphen --- for the em dash. Perhaps Hacker News' title formatter is one of them.
Okay, edit submitted, but that is extra weird , because the double hyphen is a convention or placeholder for an emdash . When a transformation takes place, it becomes an emdash. There is no reason to transform it to an endash. I don't know any software that would do that. Checked with an LLM, too. That makes no sense at all!
A /more recent/ convention.
My memory of early Associated Press computer systems is that two dashes is the endash (or "nutt") and three dashes is the emdash ("mutt").
Re: git's –end-of-options Flag
#63Does anyone know why git broke the long standing convention of "--" early on? Kind of a nightmare for humans to use. Remembering app-specific one-offs is kind of the worst!
Since it separates out the pathspec, doesn't that match the long standing convention?
Re: git's –end-of-options Flag
#64Re: git's –end-of-options Flag
#65Re: git's –end-of-options Flag
#66Earlier quoted context omitted.
Sometimes you're using git in a context where you don't control the filenames, or where a potential attacker could influence or fully control them, at which point edge cases like this can easily turn into exploits. I also chafe whenever I run into artificial restrictions on things like characters in names of things, because there's no good reason for them besides the laziness of developers or the limitations and iner…
An attacker has access to your git??? You’re fucked. Give up.
"User-controlled strings as parameters" is not "access to your git" but it is still an attack vector.
Re: git's –end-of-options Flag
#67Does anyone know why git broke the long standing convention of "--" early on? Kind of a nightmare for humans to use. Remembering app-specific one-offs is kind of the worst!
git's data model is incredibly powerful and flexible, but its UX is famously... interesting: https://stevelosh.com/blog/2013/04/git-koans/
no idea where I saw that though and it was many many years ago.
Re: git's –end-of-options Flag
#68Earlier quoted context omitted.
[flagged]
It wasn't anyways. It was clearly in reference to "master copy", which is also not a charged term. Neither was "master bedroom". Hell, for most of my life I'd never even seen anyone raise objections over the master/slave dichotomy used in software and hardware either, which is a far easier to understand argument. It's all very recent, last decade and some change, despite many of these terms having come into use after…
I agree with this position, and yet I would argue that, by taking the time to write out this comment, you are acting inconsistenly with your own statement.
I have old repos with "master" and new repos with "main". If someone were to approach me about one of the old repos and ask about the default branch, I would immediately change it to "main" without any hesitation, because it is all but certain that trying to get into an argument will waste more of my time than just doing the change would.
Re: git's –end-of-options Flag
#69Re: git's –end-of-options Flag
#70Earlier quoted context omitted.
What are the advantages over structured text?
Access to a well-established set of tools for operating on unstructured text (coreutils, grep, sed, awk, etc.).