-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support exclusions in scmpuff_status #82
Comments
Interesting! I hadn't come across that particular git feature before. Do you have thoughts on how it would ideally interact with the scmpuff ? Most things get passed along to git to handle, so it's a bit unclear to me what scmpuff is stripping/modifying that prevents this from getting passed along, but I could try to take a look. (It does also occur to me that this would add complexity to be reimplemented if we move scmpuff from using native git library integration in the future instead of a wrapper, but that's a potential tradeoff that could be considered) |
I'm not sure how the current integration works, so I can't say for sure. I imagine that the pathspec argument just needs to be passed along to Git, and that scmpuff shouldn't need to interpret it in any way. Thanks for looking into it! |
Note to self (or anyone who wants to take a stab at this):
|
Hi, thanks for the wonderful tool! 🤗 It's been indispensable in my workflow for years now.
I recently wanted to exclude a directory from showing up in the
scmpuff_status
(aliased togs
) output, and I noticed that exclusion rules in the pathspec are not taken into account.For example, the following works as expected with plain
git
:Or:
This shows the status of all files, except ones in the
vendor
directory.Yet this doesn't work with scmpuff:
Or:
This still shows the status of all files.
An obvious workaround is to do
gs | grep -v 'vendor/'
, but this is inelegant, and shows wrong file numbers.I'd be happy to contribute this change with a bit of guidance. 🙂
I'm not sure if there are other pathspec features that should be supported besides exclusions 🤔
Cheers!
The text was updated successfully, but these errors were encountered: