Clang-format migration: Investigate branch migration plan & document it #60283
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#60283
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Before applying the big-bang migration, it's critical to investigate how hard it will be to merge branches that started before the big bang change.
This task:
make format
themselves? Does that work? Or ignore it?Added subscribers: @Keir, @dr.sybren, @Stefan_Werner, @LazyDodo, @fclem, @Sergey, @dfelinto, @brecht, @ideasman42, @mont29
After discussion, it would be nice to avoid applying clang-format on whole codebase in every branch. So I tried using
-s ours
instead of-Xours
, following that process:temp-clang-format
intoasset-engine
.temp-clang-format
and commit.clang-format
intoasset-engine
usinggit merge -Xignore-all-space -s ours temp-clang-format
command.asset-engine
and commit.That does not really work well, it basically applies none of clang-format changes, i.e. after step 4 all files get modified, not only the branch-modified ones.
So instead, I reversed the step 3 and 4 of the first attempt, think this gives best results (smooth merge with much smaller commit when applying clang-format on the branch):
temp-clang-format
intoasset-engine
(about 6 conflicting files, essentially due to recent pre-clang-format edits in master).temp-clang-format
and commit.clang-format
intoasset-engine
usinggit merge -Xignore-all-space -Xours temp-clang-format
command.asset-engine
and commit.Yes, I think it can be summarized as this once the formatting is done in master:
I've added a script to rebase and merge master into branches: blender/blender-dev-tools@a64a4237d8
https://wiki.blender.org/wiki/Tools/ClangFormat#Migrating_Branches_and_Patches
Ended up being more complicated than I hoped, wouldn't mind if someone else can verify the logic is sane.
Changed status from 'Open' to: 'Resolved'