siemens / kas

Setup tool for bitbake based projects
MIT License
339 stars 145 forks source link

Feature: tracking remote branch with refspec #90

Closed lms-jk closed 1 year ago

lms-jk commented 1 year ago

Disclaimer: I had to submit this patch on GitHub, because our company SMTP server mangles the messages.

This feature allows checking out a specific commit of a meta-layer while still tracking remote branches (see mailing-list for more info). It is only a proof-of-concept and probably not ready to merge.

lms-jk commented 1 year ago

I implemented your suggestions. Thanks for mirroring to the ML :)

jan-kiszka commented 1 year ago

Done - but there are still some todos:

lms-jk commented 1 year ago

Absolutely, this patch exists only to start a discussion.

jan-kiszka commented 1 year ago

Just to link: current next containing https://groups.google.com/g/kas-devel/c/WmaNMfIDiMU/m/RxsnS1__EQAJ now allows to define both a concrete commit ID while still checking this out into a remote-tracking branch. Please check if that fulfills your needs.

lms-jk commented 1 year ago

The changes look good. Explicit keys for commits and branches are easier to understand and reduce complexity compared to the initial extension of the "refspec" key I came up with. :+1:

jan-kiszka commented 1 year ago

Perfect, then let's close this one.