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

Use git command to create patches #898

Merged
merged 2 commits into from
Sep 6, 2018
Merged

Use git command to create patches #898

merged 2 commits into from
Sep 6, 2018

Conversation

distorhead
Copy link
Member

@distorhead distorhead commented Sep 3, 2018

Go-git experiment failed for now.

There is blocking issue to continue use go-git:

And some non-blocking, but harmful:

Libgit2 is too complex to install or statically build into dapp. Also libgit2 has memory leaks.

The decision is to use raw git command in a clean and efficient way.

@distorhead distorhead mentioned this pull request Sep 4, 2018
@distorhead distorhead force-pushed the use-git-for-patch branch 2 times, most recently from eb113ba to 05da652 Compare September 6, 2018 13:53
Go-git experiment failed for now.

There is blocking issue to continue use go-git:
 * Corrupt patch generation for files without newline-at-the-end: src-d/go-git#936

And some non-blocking, but harmful:
 * Memory usage is too big on big repos: src-d/go-git#832
 * Corrupt patch generation (solved in fork): src-d/go-git#932

Libgit2 is too complex to install or statically build into dapp. Also libgit2 has memory leaks.

The decision is to use raw git command in a clean and efficient way.

Implemented Diff operation.
* Use git-cli to create paches in dapp.
* Refine GitRepo interface.
* Apply binary patches support.
@distorhead distorhead changed the title WIP: Use git command to create patches Use git command to create patches Sep 6, 2018
@distorhead distorhead merged commit 26e251e into master Sep 6, 2018
@distorhead distorhead deleted the use-git-for-patch branch April 21, 2020 17:08
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.

1 participant