chiark / gitweb /
Recognize refs under remotes/ as parent branch on stack creation.
[stgit] / contrib / stg-unnew
CommitLineData
22584709
YD
1#!/bin/sh
2set -e
3
4# stg-unnew - sort of "reverse an 'stg new'"
5
6# Remove the current patch from the stack, keeping its contents as
7# uncommitted changes.
8
9# Copyright (c) 2007 Yann Dirson <ydirson@altern.org>
10# Subject to the GNU GPL, version 2.
11
12patch=$(stg top)
13stg pop
14stg pick --fold $patch
15stg delete $patch