From 2164c014aa3f47bc092d83c393ec97d2746f91c4 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Mon, 17 Feb 2025 09:21:43 +0100 Subject: [PATCH] Add .gitreview file `git-review` is a command line tool for interacting with Gerrit. Some IDEs offer support for this tool, either natively or through plugins. The tool relies on a configuration file, .gitreview. Adding this configuration file to our repositories simplifies initial setup for contributors that use the tool directly or through their IDE of choice. The configuration file adds a remote called 'gerrit'. This is the default for the tool, and also the name set for codereview.qt-project.org by Qt's `init-repository` script. Thus, the configuration should work seamlessly alongside other repository helpers. As the file format doesn't seem to be designed with comments in mind, add it to the other version control system exemptions in REUSE.toml. Task-number: QTBUG-132604 Pick-to: 6.9 6.8 Change-Id: I4296d81b07bf3b0300693d4914b7eb64eeb25474 Reviewed-by: Samuel Gaist --- .gitreview | 4 ++++ REUSE.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitreview diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..8e5e2f4 --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=codereview.qt-project.org +project=qt/qt5compat +defaultbranch=dev diff --git a/REUSE.toml b/REUSE.toml index 9e43c5b..6eb6190 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -31,7 +31,7 @@ SPDX-FileCopyrightText = "Copyright (C) 2024 The Qt Company Ltd." SPDX-License-Identifier = "BSD-3-Clause" [[annotations]] -path = [".tag", "**/.gitattributes", "**.gitignore"] +path = [".tag", "**/.gitattributes", "**.gitignore", "**/.gitreview"] precedence = "closest" comment = "version control system. Licensed as build system" SPDX-FileCopyrightText = "Copyright (C) 2024 The Qt Company Ltd."