[libcxx-commits] [libcxx] [libc++] Add a merge driver that can apply clang-format (PR #73712)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Dec 1 07:11:09 PST 2023
================
@@ -0,0 +1,38 @@
+#!/usr/bin/env bash
+
+# This script can be installed in .git/config to allow rebasing old patches across
+# libc++'s clang-format of the whole tree. Most contributors should not require that
+# since they don't have many pre-clang-format patches lying around. This script is to
+# make it easier for contributors that do have such patches.
+#
+# The script is installed by running the following from the root of your repository:
+#
+# $ git config merge.libcxx-reformat.name "Run clang-format when rebasing libc++ patches"
+# $ git config merge.libcxx-reformat.driver "libcxx/utils/clang-format-merge-driver.sh %O %A %B %P"
+# $ git config merge.libcxx-reformat.recursive binary
----------------
ldionne wrote:
Thanks, I just blindly copied that part. Removing, I agree it seems weird to do this.
https://github.com/llvm/llvm-project/pull/73712
More information about the libcxx-commits
mailing list