repo.or.cz
/
stgit
/
ydirson.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move stack format-version checks into Stack class.
[stgit/ydirson.git]
/
contrib
/
stg-unnew
blob
5ac8781db74ff4576c7ca9fe2b80582559f5a36a
1
#!/bin/sh
2
set -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
12
patch
=
$
(
stg top
)
13
stg pop
14
stg pick
--fold
$patch
15
stg delete
$patch