frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

git's –end-of-options Flag

https://nesbitt.io/2026/07/21/end-of-options.html
44•Erenay09•1d ago

Comments

metadat•30m 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!

doctoboggan•24m ago
git's data model is incredibly powerful and flexible, but its UX is famously... interesting:

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

p-e-w•19m ago
When something appears to be poorly designed, then the deeper explanation is often that it’s indeed poorly designed.
yobert•25m ago
So I should name my next branch ‘--‘ is what I'm hearing :)
_blk•21m 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)

eru•14m 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.
ButlerianJihad•11m 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.

wafflemaker•6m 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.
bradley13•8m ago
As with almost any successful system: more and more special features and edge cases get added. Git has become ridiculously complex.

I wonder: would it not be better to tell users with those edge cases to fix their problems some other way? To take an example from the article: why does someone have a filename beginning with a dash? Maybe don't do that.

epistasis•3m ago
Perhaps I'm missing something (it's been a long day), but couldn't "--" be used for both?

    git cmd --options -- rev -- pathspec
would be the fully specified revspec and pathspec

    git cmd --option -- rev --
would be just the revspec, excluding accidental options, without a pathspec

    git cmd --option revspec -- pathspec
and the single "--" would work as it currently does.

git's –end-of-options Flag

https://nesbitt.io/2026/07/21/end-of-options.html
44•Erenay09•1d ago•12 comments

Terence Tao's ChatGPT conversation about the Jacobian Conjecture counterexample

https://chatgpt.com/share/6a5fdc7a-d6f8-83e8-bbea-8deb42cfed56
711•gmays•11h ago•429 comments

Quality non-fiction books are the antithesis of AI slop

https://resobscura.substack.com/p/quality-non-fiction-books-are-the
239•benbreen•14h ago•93 comments

GigaToken: ~1000x faster Language model tokenization

https://github.com/marcelroed/gigatoken/
417•syrusakbary•11h ago•82 comments

Show HN: Bento - An entire PowerPoint in one HTML file (edit+view+data+collab)

https://bento.page/slides/
720•starfallg•13h ago•163 comments

Restructuring GitHub's bug bounty program

https://github.blog/security/next-chapter-restructuring-githubs-bug-bounty-program/
24•soheilpro•2h ago•9 comments

Everyone should know SIMD

https://mitchellh.com/writing/everyone-should-know-simd
324•WadeGrimridge•11h ago•102 comments

Are AI labs pelicanmaxxing?

https://dylancastillo.co/posts/pelicanmaxxing.html
435•dcastm•11h ago•168 comments

Medici family mystery may be solved after more than 400 years

https://www.cnn.com/2026/07/15/science/medici-family-mystery-dna-malaria
98•effects•7h ago•23 comments

ascdraw: Editor for ASCII/UTF-8 diagrams (in 144FPS)

https://github.com/exlee/ascdraw
17•xlii•2d ago•4 comments

Show HN: Cactus Hybrid: We taught Gemma 4 to know when it's wrong

https://github.com/cactus-compute/cactus-hybrid
94•HenryNdubuaku•11h ago•14 comments

John C. Dvorak has died

https://twitter.com/na_announce/status/2079952538040672302
659•coleca•9h ago•210 comments

So Reddit has decided that plain HTML is unsafe

https://www.cole-k.com/2026/07/21/reddit/
347•montroser•16h ago•343 comments

Malleable Computing, Emacs, and You

http://yummymelon.com/devnull/malleable-computing-emacs-and-you.html
83•kickingvegas•7h ago•24 comments

Making

https://beej.us/blog/data/ai-making/
308•erikschoster•13h ago•117 comments

Fairphone 6 wide camera experimental Linux support

https://nondescriptpointer.com/articles/fairphone-6-wide-camera-linux/
90•helonaut•8h ago•10 comments

The startup's Postgres survival guide

https://hatchet.run/blog/postgres-survival-guide
353•abelanger•16h ago•176 comments

Petals: Run LLMs at home, BitTorrent-style

https://petals.dev/
82•snorbleck•3h ago•28 comments

Nobody knows what a used GPU cluster is worth

https://ciphertalk.substack.com/p/nobody-knows-what-a-used-gpu-cluster
195•rbanffy•1w ago•180 comments

Codeberg Bans Cryptocurrency Projects

https://codeberg.org/Codeberg/org/pulls/1254
186•intunderflow•3h ago•224 comments

What Rose Petals Teach Us about Induction

https://www.oranlooney.com/post/rose-petals/
27•olooney•4d ago•2 comments

Businesses with ugly AI menu redesigns

https://blog.fiddery.com/businesses-with-ugly-ai-menu-redesigns/
214•speckx•16h ago•162 comments

Any text-to-SQL benchmark should address difficulties of real-world data stores

https://cacm.acm.org/blogcacm/if-you-think-you-can-do-real-world-text-to-sql/
42•shenli3514•7h ago•13 comments

Clarity didn't work, trying mysterianism (2012)

https://gwern.net/doc/fiction/science-fiction/2012-10-03-yvain-thewhisperingearring.html
58•dboon•10h ago•26 comments

Honey Bee Colony Monitoring via Audio IoT Sensors, Tensorgrams and RNNs

https://arxiv.org/abs/2607.20386
9•StatsAreFun•2h ago•0 comments

Back to Kagi

https://blog.melashri.net/micro/back-to-kagi/
230•speckx•15h ago•173 comments

Launch HN: Unlayer (YC W22) – Add email and document builders to your app

https://unlayer.com
48•adeelraza•12h ago•33 comments

Ghost Cut – or why Cut and Paste is broken everywhere

https://ishmael.textualize.io/blog/ghost-cut/
143•willm•14h ago•97 comments

All 253 Patterns from Christopher Alexander's a Pattern Language Summarized

https://claytondorge.com/patterns-list
44•toomuchtodo•7h ago•5 comments

Taking OCaml and Eio for a Spin

https://mattjhall.co.uk/posts/taking-ocaml-eio-for-a-spin.html
47•mattjhall•2d ago•6 comments