Parth/dotfiles

be smarter when autoupdating

Opened this issue · 2 comments

Parth commented
be smarter when autoupdating
Parth commented

Currently autoupdating talks to the network everytime a new tab is opened, it would be better to have an autoupdater running in the background and checking for updates periodically (or event based). And on new tab, we check if the autoupdater is running. Something like that

@Parth Maybe create versions tags and version branch ?

Check the latest tag if this is different then the current branch then update ?

Get latest tag

git fetch && git describe --tags $(git rev-list --tags --max-count=1)

Check Current branch

git rev-parse --abbrev-ref HEAD