Parth / dotfiles

518 stars 231 forks source link

be smarter when autoupdating #26

Open Parth opened 7 years ago

Parth commented 6 years ago

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

dvdknaap commented 4 years ago

@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