Skip to content

Instantly share code, notes, and snippets.

@stevenharman
Forked from searls/git-unmaster
Last active December 15, 2015 11:59
Show Gist options
  • Save stevenharman/5256828 to your computer and use it in GitHub Desktop.
Save stevenharman/5256828 to your computer and use it in GitHub Desktop.

Revisions

  1. stevenharman revised this gist Mar 27, 2013. 2 changed files with 11 additions and 5 deletions.
    11 changes: 11 additions & 0 deletions git-noton
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/sh

    if [ $# -eq 0 ]; then
    echo "Please specify the base branch"
    exit 1
    fi

    BASEBRANCH=$1
    shift

    git log HEAD ^$(git merge-base $BASEBRANCH HEAD) --no-merges $@
    5 changes: 0 additions & 5 deletions git-unmaster
    Original file line number Diff line number Diff line change
    @@ -1,5 +0,0 @@
    #!/bin/sh

    git log HEAD ^$(git merge-base master HEAD) --no-merges $1


  2. @searls searls created this gist Mar 27, 2013.
    5 changes: 5 additions & 0 deletions git-unmaster
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/sh

    git log HEAD ^$(git merge-base master HEAD) --no-merges $1