[Development] Adding a .gitreview to all repos

Marc Mutz marc.mutz at qt.io
Wed Feb 12 17:52:59 CET 2025


On 12.02.25 11:43, Cristian Le via Development wrote:
> I want to gather some feedback about adding a .gitreview file for all 
> repos. The file would look like
> 
> ```
> [gerrit]
> host=codereview.qt-project.org
> project=qt/qtbase
> defaultbranch=dev
> ```

I wouldn't mind, looks rather static, so maintenance should be minimal 
(basically not forgetting to add it to new modules).

> This would help with out-of-the-box support for some IDEs, e.g. on 
> Jetbrains ones it read this file to determine the default for where to 
> submit the gerrit reviews.
> 
> If you have git-review cli you also have more simple interface to submit 
> and fetch changes, e.g.
> ```
> (Cherry-pick gerrit change)
> $ git review -x <Change-ID>
> (Submit a change)
> $ git review -s 6.9
> ```
> 
> For new external contributors this also signals straight away that the 
> projects are managed by gerrit and where to submit the changes.
> 
> For more reference about the .gitreview check the upstream documentation 
> [1]. There is also a Jira bug I've opened about adding this file [2].
> 
> [1]: 
> https://docs.opendev.org/opendev/git-review/latest/installation.html#gitreview-file-format
> [2]: https://bugreports.qt.io/browse/QTBUG-132604
> 
> 
-- 
Marc Mutz <marc.mutz at qt.io> (he/his)
Principal Software Engineer

The Qt Company
Erich-Thilo-Str. 10 12489
Berlin, Germany
www.qt.io

Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht Charlottenburg,
HRB 144331 B



More information about the Development mailing list