#!/usr/bin/env sh

# Back - An extremely simple git issue tracking system. Inspired by tvix's
# panettone
#
# Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# This file is part of Back.
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/agpl.txt>.

use flake || use nix
watch_file flake.nix

PATH_add ./scripts

if on_git_branch; then
    echo && git status --short --branch &&
        echo && git fetch --verbose
fi