Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Platform-Independent SIMD in Go (go.dev)
    85comments
  2. Git-bug: Distributed, offline-first bug tracker embedded in Git (github.com/git-bug)
    61comments
  3. First Principles Thinking (sunilsadasivan.com)
    39comments
  4. U.S. appeals court upholds designation of Anthropic as supply chain risk (cnbc.com)
    221comments
  5. Classified Estimates Show the NSA Is Paying Billions to Test AI Models (washingtonsun.com)
    56comments
  6. Pentium II at 600Mhz with Voodoo 3 Emulated on 86Box with M6 Mac Mini (nyaa.sh)
    91comments
  7. F-Droid 2.0 (f-droid.org)
    399comments
  8. Ink and Switch Interactive Homepage (inkandswitch.com)
    21comments
  9. Dutch governments builds alternative for Microsoft based on NixOS (dawo.community)
    487comments
  10. Factorio that you can touch (factorio.com)
    21comments
  11. Allow Carriers on Planes (jefftk.com)
    177comments
  12. Show HN: Make cursed fonts like Times New Bastard (mitpit.com)
    116comments
  13. Amiga Screens: A Primer (datagubbe.se)
    18comments
  14. CVE-2025-13032: Entering and Breaking the Avast Antivirus Sandbox Part 2 (safateam.com)
    26comments
  15. Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design (github.com/devdotfast)
    126comments
  16. Boards of Casio (ambionix.com)
    20comments
  17. What About Rails? (jardo.dev)
    135comments
  18. Gravity Seems Holographic. What Does That Mean for Reality? (quantamagazine.org)
    43comments
  19. Why is the liver so weirdly regenerative? (dynomight.substack.com)
    262comments
  20. Jevmem – automatic project memory for Claude Code, built on Jev (github.com/avinash-jetwani)
    32comments
  21. Microsoft Abandons Personal AI Chatbot Race with Copilot Reboot (bloomberg.com)
    36comments
  22. The Test (tante.cc)
    43comments
  23. 2DWillNeverDie (2dwillneverdie.com)
    76comments
  24. Rails World 2026 Opening Keynote [video] (youtube.com)
    442comments
  25. Opus 5.5 is good at explainer videos (launchvideo.io)
    200comments
  26. Fearless SIMD v1.0 (linebender.org)
    48comments
  27. Toyota is taking the Corolla electric (electrek.co)
    742comments
  28. My weird new hobby: Wandering around Tokyo on Google Maps (ahmedhossamdev.com)
    171comments
  29. Two-tier encryption in the UK (macanorak.com)
    449comments
  30. Using LLMs to trace alchemical knowledge and decode 17th century letters (resobscura.substack.com)
    38comments

Safer branching

19 pointsby 10y agoblog.bitbucket.org
11 comments
10y agoHN ↗

Nope.

My command line git workflow should not require working through a GUI.

Now, if this was added as some git hooks, enforcing the policy from both the command line and GUI then I'd be impressed (and excited).

10y agoHN ↗

What would be nice is automatically attaching git-notes to commits indicating whether or not they passed CI. That said, I haven't looked into git-notes for a few years, so I'm not sure if they ever made it easy to sync them without a bunch of manual configuration.

10y agoHN ↗

That's pretty much what Gerrit does. Works with any git client, since it's just dealing with pushes, and can. E configured to merge automatically or with a manual nudge once the tests pass. And you can do this all through the command line; no GUI needed.

10y agoHN ↗

If your company is large enough that somebody can be stuck on a problem somebody else knows the answer to (i.e. pretty much any company with more than ~10 people), you should not be committing directly to master. All commits should be submitted via a pull request that passes your CI and code review (and ideally QA review too) before being merged to master.

10y agoHN ↗

Absolutely. An alternative title for the comic would be "For the love of branch permissions". The second developer in the comic is doing the right thing by creating a feature branch.

However even in a strict branching workflow, there's still a chance you'll have genuine integration failures when two branches are merged, even if they independently pass the tests.

10y agoHN ↗

I totally agree it should have been a merge request and the master branch should be protected so novices can't merge to it.

There is a chance that the merge itself breaks the build. I must say that in practise we don't often see this. Maybe because we keep our branches small. Other people seem to be more aware of this problem https://gitlab.com/gitlab-org/gitlab-ce/issues/4176

10y agoHN ↗

Couldn't agree more. In RhodeCode (https://rhodecode.com) we use Pull Requests with a voting system. Interested reviewers are added automatically, depending on the repository and the changes being made.

10y agoHN ↗

This is a cultural problem not a technical one. The social contract in a dev team should strictly enforce no cowboy commits to master…ever. If Bob thinks that’s OK, there are more issues than a UI warning is going to solve.

10y agoHN ↗

My automated build/test server adds a tag (build-pass) to commits that pass the build and another tag (tests-pass) to builds that pass all tests.

So, instead of branching from trunk I would branch from tests-pass and that would be guaranteed to have been tested and pass, e.g.,:

$ fossil branch new my-new-feature tests-pass

I even added some CSS to make this look fancy: http://www.rkeene.org/viewer/tmp/fossil-with-tests.png.htm

10y agoHN ↗

I felt it was an odd post for using as example a workflow which is common and then in the end trying to depict as something the developer has to be blamed for, for not using a UI for branching out.

Furthermore, using their UI doesn't guarantee that pipelines have been setup to test the commits in the repo. The article actually is about bitbucket pipelines, but hardly illustrates any of it.

I hardly use the web UI of remote repos unless I have to submit or review PRs. Especially the bitbucket UI which I find lacking intuitiveness when you start navigating the repos.