commit | 20461e9a0f5fce3021c0e7978e9a8cf0cbe64eb0 | [log] [tgz] |
---|---|---|
author | pcloudy <pcloudy@google.com> | Thu Aug 22 03:21:13 2019 -0700 |
committer | John Cater <jcater@google.com> | Fri Aug 23 10:25:41 2019 -0400 |
tree | 5425685e6711288d4603b76a9d4cde3aa2d878da | |
parent | a4e7a7a5235f415eea5515b49121ec79a95b78ad [diff] |
Fix PatchUtil for parsing special patch format `diff` generate incomplete header for adding or removing one line file. Eg. """ --- foo +++ bar @@ -1 +0,0 @@ # Should be @@ -1,1 +0,0 @@ -hello, world """ We set the default value to 1 when the size info is missing. Similar logic in `git apply` implementation: https://github.com/git/git/blob/5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9/apply.c#L1400 Fixes https://github.com/bazelbuild/bazel/issues/9222 RELNOTES: None PiperOrigin-RevId: 264799477
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.