-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
feat(record)!: add default commit message for --stash #1462
base: master
Are you sure you want to change the base?
feat(record)!: add default commit message for --stash #1462
Conversation
ecace4a
to
6ff4506
Compare
cc @YakoYakoYokuYoku for comment since you initially added the |
f2e9397
to
a7360db
Compare
In my opinion I'd put this behind a config and I'd also do that to the default commit message. |
a7360db
to
403f9ec
Compare
I haven't really looked at the code yet. Re design: I actually originally envisioned that
My only remaining design consideration for stashes is that I think that it should be easy to differentiate multiple stashes in your smartlog in some way:
For the default stash message:
I would just not put this behind a config flag, and simply leave it as a breaking change for
I don't think we need a "default" stash message configuration option, as I suspect it might not carry its weight in terms of discoverability and maintainability, but we can keep it if you feel strongly and are willing to test and document it. |
403f9ec
to
e1cada1
Compare
e1cada1
to
7da4d76
Compare
Thank you both for your input. @YakoYakoYokuYoku, I had recently pushed a version w/ config flags, but I have discarded that change based on the the latest suggestions by @arxanas. I can share or re-push a version with config options in place if you'd like to try them or see them. Just let me know.
|
But only when no message is explicitly supplied. This is a breaking change. Previously, the user would be prompted for a message if none was supplied.
7da4d76
to
22d2698
Compare
This adds a default commit message to use when
record --stash
is called without any--message
arguments. This is a breaking change and needs some discussion.I find that – when stashing – I usually just want to save something for later and move on, without worrying about what to call it, and this is closer to the behavior of git's built-in stash.
Currently, calling
record --stash
without any--message
args will open$EDITOR
to supply a commit/stash message, so this would break that behavior for users used to that UX. It maintains the current behavior of using the--message
args, if any are supplied.Alternate options