Skip to content
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

Worktree.Commit: speed up commit with all: true option #139

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

StupidScience
Copy link
Contributor

@StupidScience StupidScience commented Jul 21, 2020

Hello.

Partially fixes #113

Speeding up worktree.Commit("message", &CommitOptions{All: true}) due to invoking worktree.doAddFile(..) directly and avoid invoking worktree.Status() every time.

In my case it speeds up commit from 70 sec to 2-5 seconds

@StupidScience
Copy link
Contributor Author

@mcuadros ca you please take a look here?

@StupidScience
Copy link
Contributor Author

Failed test doesn't seem to be connected to changes.

@mcuadros mcuadros changed the title speed up commit with all: true option Worktree.Commit: speed up commit with all: true option Jul 21, 2020
@mcuadros mcuadros merged commit cded5b6 into go-git:master Jul 21, 2020
traidare pushed a commit to traidare/go-git that referenced this pull request Oct 26, 2024
Worktree.Commit: speed up commit with all: true option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

worktree.Add(".") does not work as expected and CommitOptions{All: true} is too slow
2 participants