Repository navigation
Conversation
Merge upsteream
|
Hi, thanks for the PR! We're generally reluctant to add large new dependencies to Nushell; our build times and binary sizes are already slower and larger than we would like them to be. It looks like |
|
I ran comparisons on my own computer, with a sample size of 10 clean builds ( These times are reported by These seem like rather small costs, though this wasn't a scientific or large scale test. If needed, I could run some larger scale tests. |
|
Thanks, I appreciate the numbers! Going from 32s to 35s would be adding about 9% to our build time and I personally think that's a lot for one small feature. I'm not sure what OS you're building on, but on Linux this PR adds ~500kb to the Sorry for being a bit of a downer, this is a very cool feature. But if we're going to compile and bundle an entire Git implementation with Nushell, we need to make sure that the benefits outweigh the costs. Let's see how other contributors feel. |
|
@KodiCraft For some perspective, we're very familiar with the Having said all that, I'm in the same camp as @rgwood and don't really feel compelled to accept this PR but I wanted to share this history so you understand why we're so reluctant. I wonder if we'd accept this PR if it were written by shelling out and doing a Sorry for rattling on so long. I just wanted you to know that we appreciate your work and effort but don't want to just dismiss it. |
|
I agree, I don't think we should land it due to the git2 dependency which prove to be quite slow in the gstat plugin. Also, our built-in This is exactly why we have the contributing guide linked in the PR template and ask people to talk to us before implementing new features. You would get a similar response before spending time implementing your PR. I don't mean to discourage you from contributing. We're grateful that you dedicated your time to work on Nushell, we just don't feel confident landing this PR. |
|
In addition to all the valid & correct performance related objections, I would like to add, that I deem something like Naturally, a lot of users are probably involved with Everything in the core should roughly be directly related to what a shell does at its core. Dealing with files & directories, calculating sizes, etc. But |
|
That's perfectly valid and understandable, thank you for the feedback. Closing this PR |
Description
(Thank you for improving Nushell. Please, check our contributing guide and talk to the core team before making major changes.)
(Description of your pull request goes here. Provide examples and/or screenshots if your changes affect the user experience.)
This PR adds the
-gflag tolswhich allows it to display the git status of a file. It also adds a matching example in the command's examples.It's worth noting that the current implementation lacks any caching and is very slow. Just like with
-d, it must not be enabled by default.User-Facing Changes
(List of all changes that impact the user experience here. This helps us keep track of breaking changes.)
lsnow has the-gflag which adds agit_statuscolumn listing the git status of various files, if any. Related entries in the command's Examples are also added.