-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add option to hide stash #149
Comments
Workaround: let g: flog_permanent_default_opts = {
\ "raw_args": "--exclude=refs/stash",
\ } Known issue: if you use raw args combined with My thoughts on a potential native solution:
Potential solution to arguments getting overwritten: We could add a setting that always prepends to certain args instead of allowing default values to be overwritten. This would work with either the workaround or the native # Always adds "--exclude=refs/stash" to the beginning of raw args, separating the rest with a space
let g: flog_prepended_default_opts = {
\ "raw_args": "--exclude=refs/stash",
\ }
# Effectively adds an -exclude=refs/stash arg at the start of the command
let g: flog_prepended_default_opts = {
\ "exclude": ["refs/stash"],
\ } Let me know what you would think about this interface, particularly with |
Didn't know about
I think the fundamental issue is that there is no way to easily extend default options. Vim lets you |
The Also, I'm realizing I have to dig deeper into how other options interact with |
Unfortunately not a workaround. Flog first appends |
When "all" mode is enabled, the log contains commits from the stash as well. Most users will probably consider the stash as something special and don't want to see it mixed together with "regular" commits.
Outside of vim/Flog my "git log" aliases include
--exclude=refs/stash --all
to exclude the stash. I'd like to see a similar option in Flog that can be set ing:flog(_permanent)_default_opts
or a special variant of-all
.The text was updated successfully, but these errors were encountered: