Skip to content
Snippets Groups Projects
Commit 8afe589e authored by Simona Vetter's avatar Simona Vetter
Browse files

dim: Update update-branches


It's been years since drm-intel had only one maintainer, and the
primary use-case for dim ub was only to sync between machines. Update
the docs to reflect this, to avoid misleading committers. Also update
the maintainer-tools branch, which is something Paulo's script also
does.

Motivated because Paulo typed an actualize.sh script which does
exactly what dim ub is meant to do.

v2: Also update quickstart guide.

v3: And spelling fixes.

v4: Fix title and only update maintainer-tools when not a private
branch is checkout out (Jani).

Acked-by: default avatarJani Nikula <jani.nikula@intel.com>
Acked-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
parent b534f12d
No related branches found
No related tags found
No related merge requests found
...@@ -1293,6 +1293,12 @@ function dim_update_branches ...@@ -1293,6 +1293,12 @@ function dim_update_branches
dim_checkout drm-intel-next dim_checkout drm-intel-next
$DRY git reset --hard $DIM_DRM_INTEL_REMOTE/drm-intel-next $DRY git reset --hard $DIM_DRM_INTEL_REMOTE/drm-intel-next
cd $DIM_PREFIX/maintainer-tools
if git branch | grep maintainer-tools | grep '\*' ; then
echo "Updating maintainer-tools ..."
git pull --rebase
fi
update_rerere_cache update_rerere_cache
} }
......
...@@ -74,11 +74,8 @@ Setup git maintainer branches in the given prefix. ...@@ -74,11 +74,8 @@ Setup git maintainer branches in the given prefix.
update-branches update-branches
--------------- ---------------
Updates all maintainer branches. Only needs to be run to synchronize branches Updates all maintainer branches. Useful to synchronize all branches when other
between different machines (or maintainers fwiw). As long a given branch is maintainers and committers pushed patches meanwhile.
always maintained from the same machine, even if different branches are
maintained on different machines (by different maintainers), there's no need to
run this command.
status status
------ ------
...@@ -408,6 +405,10 @@ corresponding to this repository is defined by DIM_DRM_INTEL in your .dimrc. ...@@ -408,6 +405,10 @@ corresponding to this repository is defined by DIM_DRM_INTEL in your .dimrc.
You should also have directories called maintainer-tools, drm-tip (for You should also have directories called maintainer-tools, drm-tip (for
rebuilding the tree), and drm-intel-rerere for some dim-internal book-keeping. rebuilding the tree), and drm-intel-rerere for some dim-internal book-keeping.
If someone else has pushed patches first resync using::
$ dim update-branches
Applying patches to dinq is done in the main repository with:: Applying patches to dinq is done in the main repository with::
$ cat patch.mbox | dim apply-queued $ cat patch.mbox | dim apply-queued
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment