common icon indicating copy to clipboard operation
common copied to clipboard

Would be great to have version info about autospec/common

Open bktan8 opened this issue 6 years ago • 4 comments

Can we do something like "make version" which shows installed version and available update version?

bktan8 avatar Jul 12 '18 16:07 bktan8

Version of what? Clear Linux?

bryteise avatar Jul 12 '18 16:07 bryteise

autospec / common tooling

i just want to know if i'm behind or not.

bktan8 avatar Jul 12 '18 17:07 bktan8

Those aren't versioned. make pull will update them though.

bryteise avatar Jul 12 '18 17:07 bryteise

@bktan8 I am thinking that the common tooling should support doing a "fetch" operation to retrieve the latest state of common, autospec, etc and possibly all package repos.

A new command like make versionstatus could then compare the state of the local repos with the remote repos.

Let's say you ran a make pull at some point, then two weeks later, you want to know how far behind you are. Then perhaps you could do:

$ make versionstatus
*** Repos up-to-date. Run make fetch [REPO=<name>] to retrieve latest repo state
$ make fetch REPO=projects/common
$ make versionstatus
projects/common is 45 commits behind
$ make pull-projects/common
...

Maybe a versiondiff command would also be helpful to inspect the diff between local and remote branches?

phmccarty avatar Jul 24 '18 21:07 phmccarty