[upstream_utils] Remove git version from upstream patches (#4351)

This reduces commit noise when other git versions are used. The version
was removed by passing `--no-signature` to `git format-patch` which is
now documented in the readme.
This commit is contained in:
Tyler Veness
2022-08-13 18:31:26 -07:00
committed by GitHub
parent 3fdb2f767d
commit 44abc8dfa6
44 changed files with 4 additions and 132 deletions

View File

@@ -11,9 +11,10 @@ Each thirdparty library has a Python script for updating it. They generally:
`upstream_utils.py` contains utilities common to these update scripts.
Patches are generated in the thirdparty repo with `git format-patch` so they can
be applied as individual commits and easily rebased onto newer versions. Each
library has its own patch directory (e.g., `lib_patches`).
Patches are generated in the thirdparty repo with
`git format-patch --no-signature` so they can be applied as individual commits
and easily rebased onto newer versions. Each library has its own patch directory
(e.g., `lib_patches`).
## Updating thirdparty library version

View File

@@ -74,6 +74,3 @@ index 533ced151d..e4ecfd2eb5 100644
#include <gtest/gtest.h>
#include "drake/common/test_utilities/eigen_matrix_compare.h"
--
2.36.1

View File

@@ -35,6 +35,3 @@ index df7a58b2b8..55b8442bf4 100644
Eigen::MatrixXd DiscreteAlgebraicRiccatiEquation(
const Eigen::Ref<const Eigen::MatrixXd>& A,
const Eigen::Ref<const Eigen::MatrixXd>& B,
--
2.36.1

View File

@@ -26,6 +26,3 @@ index fe0cfec0b..9e8a0e7a9 100755
#endif
#if defined __NVCC__
--
2.36.1

View File

@@ -51,6 +51,3 @@ index 04b4dc50..4eb3e1fd 100644
}
file file::dup(int fd) {
--
2.36.1

View File

@@ -1545,6 +1545,3 @@ index 9943205..c655f53 100644
if (var == NULL) {
r = UV_ENOMEM;
--
2.25.1

View File

@@ -363,6 +363,3 @@ index 98c5888..f6131d4 100644
#include <assert.h>
#include <io.h>
#include <string.h>
--
2.25.1

View File

@@ -177,6 +177,3 @@ index a68b095..7843e9f 100644
/* Whether there are any non-IFS LSPs stacked on TCP */
int uv_tcp_non_ifs_lsp_ipv4;
--
2.25.1

View File

@@ -59,6 +59,3 @@ index 9442cf1..8976688 100644
r = uv__open_cloexec(path, mode | O_NOCTTY);
else
r = -1;
--
2.25.1

View File

@@ -40,6 +40,3 @@ index 85f3fc0..12ed7ff 100644
}
--
2.25.1

View File

@@ -100,6 +100,3 @@ index 7843e9f..cda82bc 100644
#pragma comment(lib, "Ws2_32.lib")
/* Whether there are any non-IFS LSPs stacked on TCP */
--
2.25.1

View File

@@ -50,6 +50,3 @@ index 534119c..00d0332 100644
while (!QUEUE_EMPTY(&queue)) {
q = QUEUE_HEAD(&queue);
h = QUEUE_DATA(q, uv_handle_t, handle_queue);
--
2.25.1

View File

@@ -20,6 +20,3 @@ index 7a5dd2e..d9888ae 100644
#endif
if (GetVersionExW(&os_info) == 0) {
r = uv_translate_sys_error(GetLastError());
--
2.25.1

View File

@@ -19,6 +19,3 @@ index eeb3572..ed51a6a 100644
assert(kr == KERN_SUCCESS);
CFMutableDictionaryRef classes_to_match
= pIOServiceMatching("IOPlatformDevice");
--
2.25.1

View File

@@ -34,6 +34,3 @@ index 0ec0242d569d..dd85a5892e01 100644
void remove_fatal_error_handler();
/// ScopedFatalErrorHandler - This is a simple helper class which just
--
2.20.1.windows.1

View File

@@ -1779,6 +1779,3 @@ index 7bda6ea28ad6..9c798437a12d 100644
// Overlong sequences of the above.
EXPECT_TRUE(CheckConvertUTF8ToUnicodeScalars(
--
2.20.1.windows.1

View File

@@ -220,6 +220,3 @@ index 0005f7840912..26901fe97d20 100644
}
// Note: Moving this function into the header may cause performance regression.
--
2.20.1.windows.1

View File

@@ -29,6 +29,3 @@ index e67ef7377c88..1a26cb702cae 100644
// This is mutable as an inlined `const unique_function<void() const>` may
// still modify its own mutable members.
mutable
--
2.20.1.windows.1

View File

@@ -183,6 +183,3 @@ index a6ae67066ea0..fc798b7ec1b7 100644
if (!Ptr.load(std::memory_order_relaxed)) {
void *Tmp = Creator();
--
2.20.1.windows.1

View File

@@ -349,6 +349,3 @@ index 989d25bb03b9..14f95ae8cc52 100644
/// \macro LLVM_THREAD_LOCAL
/// A thread-local storage specifier which can be used with globals,
--
2.20.1.windows.1

View File

@@ -76,6 +76,3 @@ index 18beb3878067..081b699adee3 100644
SmallVector<std::string_view, 4> Expected = {"A", "B", "C", "D"};
EXPECT_EQ(Expected, Keys);
--
2.20.1.windows.1

View File

@@ -229,6 +229,3 @@ index 9a08a5c1bfdf..3c049de18c0a 100644
-}
-
} // anonymous namespace
--
2.20.1.windows.1

View File

@@ -225,6 +225,3 @@ index f84895c18602..6a50205b143b 100644
#endif
// Define some fixed alignment types to use in these tests.
--
2.20.1.windows.1

View File

@@ -738,6 +738,3 @@ index bff7b6c9a77b..611043dc5925 100644
-
- return Temp->keep(OutputFileName);
-}
--
2.20.1.windows.1

View File

@@ -138,6 +138,3 @@ index 26901fe97d20..3fc16097bd30 100644
-static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint32_t),
- "Expected SmallVectorBase<uint32_t> variant to be in use.");
-#endif
--
2.20.1.windows.1

View File

@@ -212,6 +212,3 @@ index 611043dc5925..3abeed3dac21 100644
//===----------------------------------------------------------------------===//
// raw_null_ostream
//===----------------------------------------------------------------------===//
--
2.20.1.windows.1

View File

@@ -160,6 +160,3 @@ index 3abeed3dac21..27bba0ca2f06 100644
raw_ostream::~raw_ostream() {
// raw_ostream's subclasses should take care to flush the buffer
// in their destructors.
--
2.20.1.windows.1

View File

@@ -20,6 +20,3 @@ index 7a2e4220afec..8f98f3d582c7 100644
/// A base class for data structure classes wishing to make iterators
/// ("handles") pointing into themselves fail-fast. When building without
--
2.20.1.windows.1

View File

@@ -54,6 +54,3 @@ index fac12dd0e4c6..e8f1f2aca610 100644
namespace detail {
template <typename T, std::size_t SizeOfT> struct TrailingZerosCounter {
static unsigned count(T Val, ZeroBehavior) {
--
2.20.1.windows.1

View File

@@ -38,6 +38,3 @@ index e8f1f2aca610..8116c58bd0d6 100644
} // End llvm namespace
#endif
--
2.20.1.windows.1

View File

@@ -166,6 +166,3 @@ index 9c798437a12d..2fee8ad5c012 100644
#include "gtest/gtest.h"
#include <string>
#include <vector>
--
2.20.1.windows.1

View File

@@ -136,6 +136,3 @@ index 7b7d5d991f3f..72a2e84ad452 100644
} // end namespace llvm
--
2.20.1.windows.1

View File

@@ -218,6 +218,3 @@ index bcf13d828a5d..cddad9ca0660 100644
// Read into Buffer until we hit EOF.
for (;;) {
Buffer.reserve(Buffer.size() + ChunkSize);
--
2.20.1.windows.1

View File

@@ -53,6 +53,3 @@ index 4b6ddd30c6e4..9ee52a02c214 100644
abort();
#ifdef LLVM_BUILTIN_UNREACHABLE
// Windows systems and possibly others don't declare abort() to be noreturn,
--
2.20.1.windows.1

View File

@@ -32,6 +32,3 @@ index 8008170be3e5..27fb5c03e474 100644
/// This class implements an extremely fast bulk output stream that can *only*
/// output to a stream. It does not support seeking, reopening, rewinding, line
--
2.20.1.windows.1

View File

@@ -276,6 +276,3 @@ index bee3875d11c9..87600ea4704b 100644
-}
-
} // namespace
--
2.20.1.windows.1

View File

@@ -26,6 +26,3 @@ index 85987811f3c4..d3d469d45d15 100644
// Extra operators.
SmallString &operator=(std::string_view RHS) {
--
2.20.1.windows.1

View File

@@ -41,6 +41,3 @@ index 77c3a37475d0..f70f15f27da4 100644
abort();
}
--
2.20.1.windows.1

View File

@@ -150,6 +150,3 @@ index 2fee8ad5c012..bbdc041cf1d1 100644
}
struct ConvertUTFResultContainer {
--
2.20.1.windows.1

View File

@@ -32,6 +32,3 @@ index 6fa250a68ed8..6be6809ad951 100644
}
/// nulls() - This returns a reference to a raw_ostream which discards output.
--
2.20.1.windows.1

View File

@@ -22,6 +22,3 @@ index 5e7c1e961b9d..2e883ff05b7e 100644
}
/// Read a value of a particular endianness from memory.
--
2.20.1.windows.1

View File

@@ -1351,6 +1351,3 @@ index 220c97b..496021e 100644
};
void Func5()
--
2.20.1.windows.1

View File

@@ -77,6 +77,3 @@ index 03efcec..89be951 100644
#endif //defined(_MSC_VER)
--
2.20.1.windows.1

View File

@@ -19,6 +19,3 @@ index 48c7c57..6f0fbf2 100644
#pragma warning(disable : 4826)
#ifdef UNICODE
--
2.20.1.windows.1