This file is indexed.

/usr/bin/stg-unnew is in stgit-contrib 0.17.1-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e

# stg-unnew - sort of "reverse an 'stg new'"

# Remove the current patch from the stack, keeping its contents as
# uncommitted changes.

# CAVEAT: running this script on the bottom-most patch fails, since
# "stg pick --fold" does not allow this situation.

# Copyright (c) 2007 Yann Dirson <ydirson@altern.org>
# Subject to the GNU GPL, version 2.

patch=$(stg top)
stg pop
stg pick --fold $patch
stg delete $patch