diff --git a/justfile b/justfile index 2daa94d..355cf63 100644 --- a/justfile +++ b/justfile @@ -92,17 +92,20 @@ __list_packages_attrpath_filtered +attrpaths: [[ -n "$nix_locate_args" ]] || { echo >&2 "ERROR: No nix-locate args"; false; } nix-locate --top-level --regex "$@" | cut -d' ' -f1 | sd '\.out$' '' | sort -u | just _list_packages_attrpath_filtered +[no-cd] @list-dirty-packages: test -n "$($GIT diff HEAD --name-only)" || { echo >&2 "No unstaged dirty files found!"; false; } - cd "$invokedir"; $GIT diff HEAD --name-only | just _list_packages_fname_filtered + $GIT diff HEAD --name-only | just _list_packages_fname_filtered +[no-cd] @list-touched-packages-since $rev=`cd "$invokedir"; just _a_commit`: test -n "$rev" || { echo >&2 "you must pick a revision to compare against!"; false; } - cd "$invokedir"; $GIT diff "$rev" --name-only | just _list_packages_fname_filtered + $GIT diff "$rev" --name-only | just _list_packages_fname_filtered +[no-cd] @list-unmerged-packages: - cd "$invokedir"; $GIT fetch upstream ||: - cd "$invokedir"; $GIT log HEAD --not --remotes --oneline | cut -d' ' -f2- | cut -d: -f1 | grep -vE '(^treewide|[, ])' | sort -u + $GIT fetch upstream ||: + $GIT log HEAD --not --remotes --oneline | cut -d' ' -f2- | cut -d: -f1 | grep -vE '(^treewide|[, ])' | sort -u # === build helpers ===