dim: Add status command
PATCH 1/1 dim: Add status command
Useful with our branch proliferation to make sure nothing is stuck (we now also have drm-misc-next/-next-fixes/-fixes).
v2: Gracefully handle if some remotes arent' there.
Acked-by [email protected]
Signed-off-by Daniel Vetter <[email protected]>
--- dim | 22 ++++++++++++++++++++++ dim.rst | 5 +++++ 2 files changed, 27 insertions(+)
dim +22 -0
@@ -1285,6 +1285,28 @@ function dim_update_branches update_rerere_cache } +function dim_status +{ + local repo remote drm_remote patches + + cd $DIM_PREFIX/$DIM_DRM_INTEL + + drm_remote=$(url_to_remote $drm_upstream_git) + + for branch in $dim_branches ; do + repo=`branch_to_repo $branch` + if ! remote=`repo_to_remote $repo` ; then + continue + fi + + patches=$(git log --oneline $remote/$branch ^origin/master ^$drm_remote/drm-next ^$drm_remote/drm-fixes | wc -l) + + if [[ $patches -ne 0 ]] ; then + echo $repo/$branch: $patches unmerged patches + fi + done +} + function setup_aux_checkout # name url directory { local name url dir remote
dim.rst +5 -0
@@ -80,6 +80,11 @@ 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 +------ + +Lists all branches with unmerged patches, and how many patches are unmerged. + rebuild-tip ----------- Rebuild and push the integration tree.
Signature · 6 lines
2.10.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Daniel Vetter
Useful with our branch proliferation to make sure nothing is stuck (we now also have drm-misc-next/-next-fixes/-fixes).
v2: Gracefully handle if some remotes arent' there.
Acked-by [email protected]Signed-off-by Daniel Vetter <[email protected]>
Acked-by Jani Nikula <[email protected]>
Push away!
Quoted 54 lines
--- dim | 22 ++++++++++++++++++++++ dim.rst | 5 +++++ 2 files changed, 27 insertions(+)dim +22
-0@@ -1285,6 +1285,28 @@ function dim_update_branches update_rerere_cache } +function dim_status +{ + local repo remote drm_remote patches + + cd $DIM_PREFIX/$DIM_DRM_INTEL + + drm_remote=$(url_to_remote $drm_upstream_git) + + for branch in $dim_branches ; do + repo=`branch_to_repo $branch` + if ! remote=`repo_to_remote $repo` ; then + continue + fi + + patches=$(git log --oneline $remote/$branch ^origin/master ^$drm_remote/drm-next ^$drm_remote/drm-fixes | wc -l) + + if [[ $patches -ne 0 ]] ; then + echo $repo/$branch: $patches unmerged patches + fi + done +} + function setup_aux_checkout # name url directory { local name url dir remotedim.rst +5
-0@@ -80,6 +80,11 @@ 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 +------ + +Lists all branches with unmerged patches, and how many patches are unmerged. + rebuild-tip ----------- Rebuild and push the integration tree.
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel