-
Notifications
You must be signed in to change notification settings - Fork 67
Feature request: Add option to stg squash to preserve text below the ---
line
#71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @neuschaefer. Sorry for the extremely delayed reply. I'm thinking about how squash's behavior could be changed or improved to help with this use case. I'm wondering whether it might help if StGit adopted strategy similar to
Whereas this is what is presented by
What I'm suggesting is that StGit could use leading It seems like this approach would solve the immediate problem of It also seems like this approach might StGit more familiar to those coming from vanilla git. I also think I personally might prefer to edit squash messages structured this way. Thoughts? |
Hello @jpgrayson. Assuming that in your proposal, any --- line in a commit message will be ignored and preserved, rather than cut off, I think it would be fine for my use case. I imagine that my use case is somewhat rare, and I don't need the default behavior of To elaborate my use case some more: I specifically want to be able to keep the last --- line and the text below it, because I send out patches by email, that use this section for semantically important information (the changelog between patch revisions, and sometimes other information). This is information that I want to maintain as part of the commit message and send out as part of the patch email, but due to the --- line it will be dropped once it is applied to git by the receiver. |
Resolves stacked-git#71. This change makes stgit's squash behavior mirror git's behavior, which should be nice for people coming from vanilla 'git'. Breaking change(?): Users now need to manually remove undesired messages from squashed patches.
Resolves #71. This change makes stgit's squash behavior mirror git's behavior, which should be nice for people coming from vanilla 'git'. Breaking change(?): Users now need to manually remove undesired messages from squashed patches.
When using
stg squash
and editing the patch description, I'd likestg squash
to preserve the text below the---
line, because I keep a list of changes between the patch's published revisions there.Currently I need to replace
---
with something else before I finish editing instg squash
and later change it back withstg edit
, but it would be more convenient if I could pass an option tostg squash
that would cause it to perserve the text.The text was updated successfully, but these errors were encountered: