[PATCH 2/2] dim: exclude commits from subordinate trees in pull-request
Daniel Vetter
daniel.vetter at ffwll.ch
Mon Apr 30 16:16:19 UTC 2018
For trees which integrate other trees it's a bit much to show all the
commits pulled in through those other trees - that should all be
summarized already in the merge commit.
Instead only show commits done in the local tree, whether that's
merges or normal commits. --first-parent achieves that.
Cc: Dave Airlie <airlied at gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
dim | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dim b/dim
index cf7ad2dae35f..d8288a342352 100755
--- a/dim
+++ b/dim
@@ -1721,7 +1721,7 @@ function dim_update_next
$DRY git add drivers/gpu/drm/i915/i915_drv.h
git commit $DRY_RUN -sm "drm/i915: Update DRIVER_DATE to $driver_date"
- gitk drm-intel-next-queued ^$(repo_to_remote drm-upstream)/drm-next &
+ gitk --first-parent drm-intel-next-queued ^$(repo_to_remote drm-upstream)/drm-next &
# try to push dinq first in case someone raced
FORCE=1 dim_push_queued
@@ -1821,7 +1821,7 @@ function dim_pull_request
repo="drm-intel"
else
tag=$(tag_name "$branch")
- gitk "$branch" ^$upstream &
+ gitk --first-parent "$branch" ^$upstream &
tag_branch $tag $branch
$DRY git push $remote $tag
prep_pull_mail $req_file $tag
--
2.17.0
More information about the dim-tools
mailing list