Blob Blame Raw
s/^\( *\)git checkout -b <new-branch-name>$/\1git checkout -b new_branch_name/
s/^(HEAD detached at \([0-9a-f\.]*\))$/(detached from \1)/
s/^\(HEAD detached at [0-9a-f\.]*\)$/# \1/
/^Your branch is up to date with 'origin\/.*'\.$/d
/^On branch master$/{
  N
  /^On branch master\nYour branch is up to date with 'origin\/.*'\.$/{
    N
    /^On branch master\nYour branch is up to date with 'origin\/.*'\.\n$/{
      N
      s/^\(On branch master\)\nYour branch is up to date with 'origin\/.*'\.\n\n\(nothing to commit, working tree clean\)$/# \1\n\2/
    }
  }
}
/^You are not currently on a branch\.$/{
  N
  /^You are not currently on a branch\.\nPlease specify which branch you want to merge with\.$/{
    N
    s/^You are not currently on a branch\.\nPlease specify which branch you want to merge with\.\nSee git-pull(1) for details\.$/You are not currently on a branch\. Please specify which\nbranch you want to merge with\. See git-pull(1) for details\./
  }
}