diff options
Diffstat (limited to 'package.inc.sh')
-rw-r--r-- | package.inc.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package.inc.sh b/package.inc.sh index 1456baf..6d6407f 100644 --- a/package.inc.sh +++ b/package.inc.sh @@ -141,6 +141,14 @@ package_get_repos() { printf '%s\n' "${!repos[@]}" } +package_untrack() { + local pkgname=$1 remote=$2 + + if git show-ref -q "refs/heads/$remote/packages/$pkgname"; then + git branch -D "$remote/packages/$pkgname" + fi +} + _package_shortlog() { local pkgname=$1 remote=$2 |