Guest User

Untitled

a guest
Feb 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. commit=$1
  4. branch=$2
  5. if [[ -z "$branch" ]]; then
  6. branch=HEAD
  7. fi
  8.  
  9. git rev-list --children $branch --not $commit^@ | \
  10. awk "/^$commit/ { print \$2 }"
Add Comment
Please, Sign In to add comment