Skip to content

Instantly share code, notes, and snippets.

View adomani's full-sized avatar

damiano adomani

View GitHub Profile
@adomani
adomani / add_deprecation.sh
Created February 3, 2024 23:00
A simple-minded script for adding deprecation statements to carefully prepared PRs
#! /bin/bash
if [ -z "${1}" ]
then
commit="$( git merge-base master "$( git rev-parse --abbrev-ref HEAD )" )"
read -p $'Type a commit number such that all diff lines containing `theorem/def`
correspond to deprecated declarations (use '"'${commit}'"' otherwise):
' comm
[ -n "${comm}" ] && commit=${comm}
else