[PATCH] request-pull: Show the information for the terminating commit id if passed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This makes it somewhat easier for a developer to know at what commit
his/her *next* pull request might start.

Signed-off-by: Michael Fischer <michael@xxxxxxxx>
---
 git-request-pull.sh |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/git-request-pull.sh b/git-request-pull.sh
index 6fdea39..a13eeda 100755
--- a/git-request-pull.sh
+++ b/git-request-pull.sh
@@ -70,7 +70,17 @@ git show -s --format='The following changes since commit %H:
 
   %s (%ci)
 
-are available in the git repository at:' $baserev &&
+' $baserev
+
+if [ -z "$3" ]; then
+git show -s --format='and up to commit %H:
+
+  %s (%ci)
+
+' $headrev
+fi
+
+echo "are available in the git repository at:" &&
 echo "  $url $branch" &&
 echo &&
 


Michael
-- 
Michael Fischer
michael@xxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]