News for hackers. Stuff that matters.
Re:Stacked Git – manage commits as a stack of patches by bvrmn on Friday May 28, 2021 @12:20AM (#27311695)
`stg publish` was cumbersome to use and I wrote simple bash script:

    cat ~/bin/stg-update 
    #!/bin/bash
    set -e
    current=$(stg top)
    git push -f origin HEAD:$current
It pushes changes into remote branch with same name as a current patch.
Re:Stacked Git – manage commits as a stack of patches by tyhoff on Friday May 28, 2021 @11:09AM (#27316303)
These two commands ultimately do different things. `stg publish` was in the business of not force pushing and only committing the 'delta' between what lived on a branch and the currently applied patches, so that you can `git push [no -f]` to a branch.

Definitely cumbersome to use, but it had fair reasons to be cumbersome.