Replies: 1 comment 8 replies
-
Currently, in order for a branch to be initialized with a StGit stack, either The feature you ask about is something I've been thinking about for quite a while. My workflow is also often interrupted when I switch to a branch and try either Anyway, I am in favor of having a Having a complementary The stack metadata that is initialized by
You can inspect the stack metadata with a few git commands, for example:
Deinitializing the StGit stack from a branch is done via N.B. the reason that StGit keeps stack state in the repo's object database (instead of in plain files under I'm not sure that auto-deinitialization makes as much sense as auto-initialization. For example, emptying a stack, either via |
Beta Was this translation helpful? Give feedback.
-
When using
stg
Iregularlyalways bump into trying tostg new
a patch on a new branch to be informed that the branch isn't initialized yet. This feels a little bit like a wrench thrown into an otherwise pleasant workflow.Now I wonder if I have been missing something but couldn't find a flag in
new
to auto-initialize the branch as needed, nor could I figure out if there might begit-config
options thatstg
would read by default.If none of that exists yet, I feel that an
--init
option fornew
would do the trick, and shell aliases can take it from there.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions