You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a backup / restore functionality that's basically:
create a .tar.zstd of the elpaca directory
fetch all heads with elpaca-fetch-all
look in the elpaca-logs for "#update-log" to see if there are any updates
if no updates then delete the created backup
if any updates then merge them with elpaca-merge-all and kill-emacs to start fresh
What I'd like is a more robust way of checking if updates are needed. Basically I propose an elpaca-check-for-updates (or similar named) that uses git rev-parse HEAD and git ls-remote origin -h refs/heads/<<branch-name-here>> to check for updates without actually fetching them.
This way, the backup step would be:
check for updates
if any: backup and pull
if none then noop
Confirmation
The feature I'm proposing does not already exist in Elpaca
The text was updated successfully, but these errors were encountered:
Cool! I suggest implementing something like that as a separate package which integrates with Elpaca.
What I'd like is a more robust way of checking if updates are needed. Basically
I propose an elpaca-check-for-updates (or similar named) that uses git rev-parse HEAD and git ls-remote origin -h refs/heads/<<branch-name-here>> to
check for updates without actually fetching them.
That should cover the simple case of users who do not modify any packages.
For users who do, it would be necessary to check if the current worktree is clean and also if the remote HEAD is an ancestor of the user's work. Straight.el has some work in that direction in straigth-vc-git--local-branch which may be of use.
Cool! I suggest implementing something like that as a separate package which integrates with Elpaca.
Yes, I'm implementing that as a separate package, the purpose: build just enough functionality to be able to pitch elpaca as the package management solution for Spacemacs (no promises though).
Feature Description
I'm building a backup / restore functionality that's basically:
What I'd like is a more robust way of checking if updates are needed. Basically I propose an
elpaca-check-for-updates
(or similar named) that usesgit rev-parse HEAD
andgit ls-remote origin -h refs/heads/<<branch-name-here>>
to check for updates without actually fetching them.This way, the backup step would be:
Confirmation
The text was updated successfully, but these errors were encountered: