Skip to content

Commit 14303a1

Browse files
committed
umpf: omit hash/version info on show without --identical
The topic-range and hashinfo information won't be used later on, unless --identical is given. It thus makes sense to ignore them in umpf show too, unless the user requests them with --identical. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
1 parent a3616f4 commit 14303a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

umpf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,13 @@ do_abort() {
18771877
18781878
do_show() {
18791879
VERBOSE=true
1880-
prepare_persistent show "${@}"
1880+
prepare_persistent show "${@}" | (
1881+
if $IDENTICAL; then
1882+
cat
1883+
else
1884+
sed -r '/^# umpf-(version|topic-range|hashinfo|release): /d'
1885+
fi
1886+
)
18811887
cleanup
18821888
}
18831889

0 commit comments

Comments
 (0)