Podcast about DevSecOps

#36 - Sturdy. Is it time for a new version control tool?

Sturdy makes unfinished code visible to teammates before a commit or pull request.

18 min read

We have had Git around for more than 15 years, and during that time, it has become a standard de-facto to share code and track code changes. While Git is a superior version control system to most of what we have seen before, it has been 15 years since the first release. Should we be looking for new ways to approach version control systems? Is the time right for the next generation of tools in this area?

Discuss the episode or ask us anything on LinkedIn


Sixteen years in, Git still assumes you work with strangers

Your team does a standup every morning and shares a channel all day. You still find out what a colleague built when their pull request lands three days later: polished, six hundred lines, with every interesting decision already made. Git was built so that people who may never speak can exchange patches safely, and the pull request inherited every assumption underneath it. You can share earlier, and GitHub has shipped draft pull requests since February 2019 for exactly that. Opening one is a decision somebody has to make, every time. Nothing in the workflow makes unfinished work visible on its own.

That model is old enough to drive. The root commit of Git’s own repository, Initial revision of "git", the information manager from hell, was written by Linus Torvalds in April 2005. Sixteen years on, Git is the default. So is everything stacked on it: GitHub, GitLab, Gerrit, your CI triggers, your dependency scanners, your branch protection rules, the audit trail your auditors read. It won so completely that its workflow stopped looking like a choice. That’s the part worth poking at. If your team isn’t a distributed crowd of strangers, how much of that workflow are you paying for without using?

Kiril Videlov is co-founder and CEO of Sturdy, a Stockholm startup backed by Y Combinator that is building a code collaboration platform for teams that work closely together. He and co-founder Gustav Westling spent years on developer productivity, CI/CD and release tooling at the fintech Tink before starting it. Their observation is narrow and specific. The workflow everyone runs was designed for open source and fits open source well, and a team that does standups and worries about its bus factor has different priorities. We tried the beta individually, each on our own machine, which turns out to have hidden the feature the whole thing is built around. So this is a first look at an early beta, not a verdict.

Centralized stopped being an insult

The first reaction here was that the industry is walking backwards.

Does a cloud-synced folder mean going back to checking out files from a server?

No. Nothing locks, you don’t have to reserve a file before you type in it, and the folder on your laptop stays a folder.

We moved off ClearCase, SVN and CVS to get away from a server that had to be there. The memory most of us carry is of reserved files and full-time merging. Subversion is less guilty than the memory suggests. It caches a pristine copy of each file in your working copy, so svn status, svn diff and svn revert run with the network off. svn commit is the step that has to reach the repository. What centralized actually cost you was history in your pocket: no branching, no merging and no log on a plane.

A tool that keeps a folder on your laptop in sync with the cloud still looks like that history coming round again. Then we used it. You sign up, download a binary, paste a token into the command, and a small process starts on your machine, reporting sync status and little else. Create a README in the browser and it appears in your directory. Edit it in your editor and it appears in the browser. Switch to another branch in the UI and the contents of your folder change underneath you.

That browser round trip is the beta we saw, not the product Kiril Videlov described. Sturdy was moving the same interface into a desktop app. The code bases, the workspaces and the controls then sit in one window, instead of split between a web page and a daemon on your laptop. Either version connects at the file system, which is the part most new tools get wrong. You keep editing files in Vim, Emacs, IntelliJ or whatever you already have set up. Editor features that read Git’s own metadata, a blame gutter or a branch indicator, are worth checking on your own setup first.

Fifteen to twenty minutes of clicking was enough for an experienced Git user to get a flow going. The documentation for Git users stayed open the whole time, mapping one set of words onto the other. There are roughly ten times fewer buttons than GitHub has. Some of that is beta, and some of it is the point.

A workspace is a branch you can watch happen

The naming is where the design shows, so start there.

What is a workspace, in Git terms?

A living branch with a comment thread attached, somewhere between a branch and an open pull request, and visible to your team while you’re still typing into it.

In Git you branch, commit, push, open a pull request, then discuss. In Sturdy the workspace is all of that at once, and your teammates can browse it from their own screens while you work. Switching between your own workspaces is a button instead of a stash, so an urgent bug fix doesn’t cost you your working state. You can also jump into someone else’s: their code lands in your folder, your work in progress is kept, and you can run their branch straight away. That’s the part we missed by trying the tool alone, and it’s where a workspace stops being a branch with a nicer name.

Work flows in one direction only, from a workspace to the code base. There’s no syncing between workspaces, and sharing produces a single commit on a linear history. That one constraint deletes a whole genre of team argument: what to call the main branch, how many long-lived branches to keep, whether to rebase before merging. The unreadable merge graph goes with them. The tool only knows how to do trunk-based development. DORA’s analysis of its 2016 and 2017 State of DevOps data ties higher delivery performance to three or fewer active branches, merged at least daily. That’s research rather than our experience, and it points the same way. Plenty of people will dislike having the choice taken away, and we hope the constraint survives contact with enterprise customers. A company supporting five shipped versions is going to ask for long-lived branches.

Polishing the pull request hides it when help is cheapest

Constraints on branching are the small half of the argument. The bigger one is about when other people get to see your work at all.

Why does early sharing beat better review?

Because by the time a change is good enough to show, the decisions worth questioning have already been made and paid for.

Think about handing in homework. You perfect it, because it’s going to be judged. Pull requests carry the same reflex. A draft pull request is the Git-shaped answer, and it works, as long as somebody remembers to open one and the rest of the team remembers to look. Sturdy makes the unfinished state the default instead: every workspace is discoverable from the first keystroke, so nobody has to decide to be brave.

We have trained a lot of people new to the industry, and this is a common shape of failure. Someone gets stuck, experiments, and spends a couple of days heading somewhere they will have to abandon. Nobody notices, because there’s nothing to notice: the work exists only on their laptop, and the alternative to silence is a colleague standing behind them watching the screen. The word commit doesn’t help either. You commit to something. You put your name on it. That’s a heavy thing to ask of code that is a sketch, and a button that says “take a look at what I have” asks for much less.

The payoff isn’t a nicer feeling. It’s smaller changes, shipped behind feature flags, with less surface area at risk per deploy and a delta a reviewer can hold in their head. High-performing teams tend to ship several times a day and do it safely. Making work in progress discoverable by default is one route there, and the reason it works is social: when everyone’s unfinished code is visible, nobody’s unfinished code is an event.

Your pipeline, your scanners and your gates all assume Git

A new place to put code is only as useful as its compatibility with everything that already consumes code.

What happens to your pipeline if the repository is not Git?

Keep Sturdy’s GitHub integration in the middle and your pull request workflow survives, because a pull request still gets opened. Drop GitHub and you have to re-home every trigger, approval and required check that hangs off that event.

The compatibility layer exists to import and export projects and to run alongside GitHub, with changes mirrored across. Half your team can stay on pull requests and consume what the other half produces. Your CI triggers, your npm audit run, your linting, your license checks and your SBOM step are mostly bolted to the pull request. For a small team, the pull request may carry most of its automated checks. A tool that can’t produce one is a tool you can’t adopt incrementally.

That same layer is also your way out, so run the export before you depend on the tool and open what comes out. Sturdy keeps more than Git objects: a database beside the Git layer, some state on disk, and its own large file support. Check whether you got the full commit history or a snapshot of the current tree, and whether large files came with it or stayed in Sturdy’s own storage. Comments, suggestions and workspace records sit outside Git’s object model, so ask whether the export carries them or whether they come as a separate archive. Whatever is missing is what you lose if the service goes away.

Without GitHub in the middle, that scaffolding has nothing to hang from, so work through the list before you get there rather than after. Which event starts a build. Who approves what. Which checks are required, and what your compliance record points at when an auditor asks.

The more interesting claim is about what becomes possible once the code is already in the cloud as you type it. Checks can start closer to the keystroke rather than waiting for a push, and a runner can be kept warm for as long as someone is working. That’s a direction rather than a shipped feature, and it’s easier said than done.

Monorepo scope, and access control at the folder level

Scope is the other place where Git’s unit of everything, the repository, starts to chafe.

Can one repository hold everything if not everyone may read everything?

Sturdy’s answer is to sync only part of the tree to your machine, and to let that selection double as permissions.

You define roles in a JSON document in the code base settings, and a role names the folders it may have. The selection applies in real time. Save the file and the directories that are no longer yours disappear from your laptop. Writing JSON by hand where most products would give you toggles is a beta smell. It’s also the shape a platform team ends up wanting, because toggles don’t go in version control.

Git has one half of this. git sparse-checkout shipped as an experimental command in Git 2.25 and keeps the working tree small. That’s a performance answer, not an access one. The clone still carries the history you filtered out of your checkout, and in Git the unit of permission is the whole repository. That’s one of the things that stops organizations trying a monorepo, alongside build times, tooling that buckles at scale and the question of who reviews what. Google’s paper on its own monolithic repository describes a custom-built system behind the common source of truth it gives tens of thousands of developers, not something bought off the shelf.

Leaving Git is also less exotic than it sounds. Teams with large binary assets have been going elsewhere for years. Perforce Helix Core and Plastic SCM, which bills itself as distributed version control for big projects, are the names that keep coming up around game development. Large binaries are where Git’s model costs the most. Git’s own answer there is Git LFS, which swaps large files for text pointers and a separate server. Sturdy keeps its own storage with large file support alongside the Git layer, and its users have benchmarked it with game development projects. Nobody has thrown the Linux kernel at it yet.

An agent on your laptop, and a plane with no wifi

Real-time sync is the feature. It’s also a daemon with write access to your disk, so it deserves the uncomfortable question.

What exactly are you installing when the folder syncs itself?

A process that takes instructions from a server and changes files on your machine. That’s a larger ask than a Git remote, which only moves when you tell it to.

The shape is familiar: an agent on developer laptops, taking commands from a central service, is the architecture of a command and control system. The command set is presumably small and the intent is benign. The blast radius still covers every machine it runs on, which makes this a supply chain question and not a preference. Plenty of applications write to your file system, which is a reason to ask what this one does, not a reason to stop asking. Sturdy’s answer is that the trust has to be earned, through what the privacy terms say and how straightforward the company is about them. That’s the right answer. It’s also the answer every vendor gives, so go and read the terms.

Consultants have a sharper version of the same worry. We wouldn’t hand a new tool access to a GitHub account that reaches customer code, so we started with an empty code base, a README and nothing else. Sturdy can be pointed at a single repository, which is the right default and worth re-checking before you roll it out.

The purist objection, that you can’t work on a plane, is half answered. Your checkout is on your disk, you keep typing, and your changes become visible when you land. What you don’t get offline is the version control around the editing. Co-founder Gustav Westling said in August 2021 that you can’t jump between workspaces while you’re disconnected, or line up several of them to share later. The copy on your machine is “just the current code for now”, so there’s no history to read either. Git hands you every branch and the whole log with the wifi off.

Self-hosting is the other gap. GitLab got a decade of traction largely because you could run it yourself, containers and all. Self-hosting may become a requirement for the enterprise customers you want to reach. The companies that want a monorepo because Google has one are the ones we would expect to ask first.

Unlearning Git

Which leaves the hardest problem, and it isn’t technical.

Why is a simpler tool harder to learn?

Because the first thing an expert does is look for the commands they already know, and here there are none.

There’s an old line about Lisp: if you don’t know Fortran it takes three days to learn, and if you do know Fortran it takes six. The most common question from new Sturdy users is how to run git status. The answer is that you look at the screen, because the status is in front of you. That answer is unsatisfying in exactly the way a paradigm shift is unsatisfying.

The vocabulary is where that lands first. A code base is a repository. A workspace is a branch and a pull request at once, except that the first one you see looks like a button labelled “add README”. A change log is the main branch. It’s also where you undo a bad deploy: find the change you want gone and undo it from there, and Sturdy writes a new change that reverses it. The history in between stays where it is, which is rolling forward under another name. A tool asking for that much unlearning owes you an obvious mapping. The desktop app closes part of that gap. For anyone who lives in a terminal, going to a window to switch workspace will still feel like the long way round.

Sturdy is a small team writing Go against GitHub, GitLab and Perforce, which is an unfair fight by any reasonable measure. That’s not a reason to skip it. Try it and judge the direction, not the button count, because the ideas here outlive whoever ships them. If the behemoths win, the industry still keeps the lesson, and the lesson is that your version control tool has been quietly setting your team’s social norms for sixteen years.

What this means for teams

The pull request is a workflow decision disguised as a tool feature, and the reflex to perfect a change before showing it costs you the cheapest feedback available. In Git, the unit of permission is the repository. That’s one of the constraints shaping your monorepo decisions, next to build times, scale and how closely your teams want to work.

Four things you can do this week:

  • Ask one person on your team who got stuck recently how long they worked before anyone else saw the code. That number is your real feedback latency, not your review turnaround time.
  • Pick your noisiest repository and count what the pull request actually gates: lint, tests, dependency audit, approvals, the compliance record. Write the list down. Any change to how your team shares work has to re-home every line of it.
  • Share something unfinished on purpose, with a message that says it’s a sketch. A draft pull request will carry it. Doing that once as a senior person is worth more than a policy, because the behaviour you’re trying to change is social rather than technical.
  • If you’re running or considering a monorepo, write down which of your constraints are about access and which are about scale. git sparse-checkout gives you a smaller working tree, not a smaller clone of history, and it isn’t an access control feature at all.

Common questions, answered

How do I try a Git replacement without migrating my whole team?

Run it alongside GitHub through a Git compatibility layer, and start with a repository that holds no customer code. Sturdy mirrors changes to GitHub and produces pull requests the rest of your team consumes. Half the team carries on as before while the other half tries the new flow. Give the tool one repository rather than a whole account, especially on a machine that touches other people’s code.

What happens to my code if the company behind a new version control tool disappears?

Export into Git before you depend on the tool, then open what comes out. A compatibility layer gets your committed code into the format your CI, your scanners and your compliance evidence already understand. Check whether the export preserves comments, suggestions and workspace records, or provides a separate archive. Do the same for the code itself: whether you got the full history or a snapshot of the current tree, and whether large files came along or stayed in the vendor’s own storage. Whatever is missing is what you lose if the service goes away.

How do I get juniors to show unfinished work before they lose two days?

Give the act of showing code a lower price than a commit. The word commit means putting your name on something, and for a person new to the industry that’s heavy enough to delay by days. Ask for a sketch instead of a finished change. Share your own half-finished work first, because the norm is set by whoever is most senior in the room. A draft pull request carries all of that, and none of it needs new software.

  • Episode 26, Git Branching Strategies is the argument underneath this one: branching postpones integration risk instead of removing it, and trunk-based development is what Sturdy enforces by construction.
  • Episode 2, GitOps is the deployment end of the same question. If the repository isn’t Git, you need to know what your cluster is reconciling against.
  • Episode 16, Do You Need a Staging Environment? covers where verification happens before production, which is the other half of shipping smaller changes more often.
  • Episode 14, Theory of Constraint is the framework for deciding whether feedback latency is actually your bottleneck before you change tools to fix it.

Resources

  • Sturdy is the product this episode is about, and where you download the app and connect it to a single GitHub repository.
  • Show HN: Sturdy, online-first version control focused on collaboration (August 2021) settles what Sturdy claimed for itself at the time: a two-way synced directory, workspaces that map onto branches, a linear history and a Git compatibility layer. It also settles the limits of working offline, and that there was no self-hosting or open source yet.
  • Kiril Videlov on LinkedIn is where our guest writes about building Sturdy.
  • Kiril Videlov on Twitter is where the post that started this conversation turned up.
  • Why Google Stores Billions of Lines of Code in a Single Repository (Communications of the ACM, 2016) settles that a monolithic repository serving tens of thousands of developers required a custom-built system. It says nothing about a ten-person team.
  • Bring your monorepo down to size with sparse-checkout (January 2020) settles what Git’s partial checkout does: it shrinks the working tree, with cone mode as the usable interface. It is a performance feature, not an access control feature.
  • Trunk based development, DORA settles the measured thresholds from the 2016 and 2017 State of DevOps data: three or fewer active branches, merged at least daily.
  • Git LFS settles how Git handles large binaries, by replacing them with text pointers and storing the contents on a separate server.

Since we recorded

Sturdy’s code went public on GitHub, under Apache 2.0 for everything outside its enterprise directories, with a self-hosted server you could start from a single docker run. That repository has had no pushes since June 2023. Kiril Videlov went on to co-found GitButler with GitHub co-founder Scott Chacon, where he is co-founder and CTO, and that product works with existing Git repositories instead of replacing them. The pull request survived, and the pressure on it moved: we came back to what review means when agents write the code in episode 89.