Skip to contentSkip to conversation

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

PATCH New Michael Fischer 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 request-pull: Show the information for the terminating commit id if passed

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

---
 git-request-pull.sh |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
git-request-pull.sh +11 -1
index 6fdea39..a13eeda 100755
@@ -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

Signature · 2 lines
Michael Fischer
[email protected]