Skip to content

Add option to skip git status check when adding a file #993

@moranCohen26

Description

@moranCohen26

I noticed that in large repository Status() takes too long time (5 sec in my case). In scale this is something that would be nice to improve to get a better performance, more so if you already know that which files you modified and want to add to stage.
My suggestion is to add "skipStatus" option to AddWithOptions to gain a better performances.
I will apply only if Path option is given and All option is not given. Anyway from my tests there should be no impact if you are trying to add a non modified file, behavior will be the same like you are not using the "skipStatus" flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions