Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

67% Positive

Analyzed from 244 words in the discussion.

Trending Topics

#git#poorly#title#long#standing#convention#kind#https#com#doesn

Discussion (7 Comments)Read Original on HackerNews

metadatabout 1 hour ago
Does 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!

doctobogganabout 1 hour ago
git's data model is incredibly powerful and flexible, but its UX is famously... interesting:

https://stevelosh.com/blog/2013/04/git-koans/

epistasis30 minutes ago
Since it separates out the pathspec, doesn't that match the long standing convention?
p-e-wabout 1 hour ago
When something appears to be poorly designed, then the deeper explanation is often that it’s indeed poorly designed.
yobertabout 1 hour ago
So I should name my next branch ‘--‘ is what I'm hearing :)
_blkabout 1 hour ago
> git log --end-of-options "$rev" -- "$path",

Argh, that's when I wished for object oriented shells. Powershell sure isn't perfect but objects encoding their own meaning really helps differentiate those cases (but it may not always help the user if types aren't clear to the reader)

eru44 minutes ago
I don't think you need object orientation for that. Haskell and Rust solve these problems also just fine, without any OOP in sight.
_blk18 minutes ago
Hmm, not sure I understand. How are those shell based?

I agree that rust and haskell are not your typical OO (or not OO at all in a traditional sense) I guess my poorly worded claim was less focused on the OO nature of psh than on the typization (which both of these also do) - if you knew what type $rev and $path are, it's easier to distinguish intent, whether objects or not.

ButlerianJihad41 minutes ago
https://m.xkcd.com/1597/

By the way, something munched the article title. An emdash is incorrect command-line usage. It’s supposed to be a double hyphen.

wafflemaker36 minutes ago
From the title I've learned that git uses an em-dash instead of double dash as options delimiter. Thanks for pointing out that the title was wrong -- I've never had a need to use -- with git, so didn't know that it doesn't work.
ButlerianJihad21 minutes ago
I'm sorry, you've learned what now?