by tyhoff · 5y ago · 0 comments
---
A question for the maintainers...I was enjoying the command `stg publish` to allow myself to keep refreshing patches locally but every so often push to a branch that others non-stg users were pulling and pushing to. The command was removed in 1.0.
I'm curious why it was deprecated and removed and if there is a good replacement flow for working with non-stg users on branches I can't force push to.
I removed it because it was challenging to test and maintain, its semantics are somewhat complex, and it wasn't clear that it provided value to anyone.
If you wouldn't mind making your case on the issue tracker [1], I will reconsider the fate of `stg publish`.
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.Definitely cumbersome to use, but it had fair reasons to be cumbersome.